summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/attrib37.C
blob: d12c176afd32d2aa3c4bf4ca08d435711ca5d2df (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-*-* } && ilp32 } } }

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

S __attribute__((__stdcall__)) getS();

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