aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib37.C
blob: 5aacac62c482da6fec9844ff50098d22305bada8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/43093
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }

struct S {
  int x;
  S(const S &s) {}
};

S __attribute__((__stdcall__)) getS();

void test()
{
  S s = getS();
}