Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/gen-attrs-37.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // PR c++/43093 |
2 // { dg-options "-pedantic" } | |
3 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } | |
4 // { dg-require-effective-target c++11 } | |
5 | |
6 // c++11 attributes that apply to types are ignored for now | |
7 | |
8 struct S { | |
9 int x; | |
10 S(const S &s) {} | |
11 }; | |
12 | |
145 | 13 S getS() [[gnu::__stdcall__]]; |
111 | 14 |
15 void test() | |
16 { | |
17 S s = getS(); | |
18 } |