Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/alignof.C

raw
1 // { dg-do run }
2 extern "C" void abort();
3
4 struct S
5 {
6 char c;
7 double d;
8 };
9
10
11 template <class T>
12 void foo(T)
13 {
14 if (__alignof__(T) != __alignof__(S))
15 abort();
16 }
17
18
19 int main()
20 {
21 foo(S());
22 }