Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/c11-align-5.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
17 int *_Alignas (long) p; /* { dg-error "expected" } */ | 17 int *_Alignas (long) p; /* { dg-error "expected" } */ |
18 int *const _Alignas (long) *q; /* { dg-error "expected" } */ | 18 int *const _Alignas (long) *q; /* { dg-error "expected" } */ |
19 struct s { int n; }; | 19 struct s { int n; }; |
20 __builtin_offsetof (struct s _Alignas (int), n); /* { dg-error "expected" } */ | 20 __builtin_offsetof (struct s _Alignas (int), n); /* { dg-error "expected" } */ |
21 __typeof (long double _Alignas (0)) e; /* { dg-error "expected" } */ | 21 __typeof (long double _Alignas (0)) e; /* { dg-error "expected" } */ |
22 sizeof (int _Alignas (int)); /* { dg-error "expected" } */ | 22 sizeof (int _Alignas (int)); /* { dg-error "specified for type name" } */ |
23 _Alignas (int _Alignas (float)) int t; /* { dg-error "expected" } */ | 23 _Alignas (int _Alignas (float)) int t; /* { dg-error "expected" } */ |
24 __builtin_types_compatible_p (signed _Alignas (0), unsigned); /* { dg-error "expected" } */ | 24 __builtin_types_compatible_p (signed _Alignas (0), unsigned); /* { dg-error "expected" } */ |
25 int a[_Alignas (int) 10]; /* { dg-error "expected expression before" } */ | 25 int a[_Alignas (int) 10]; /* { dg-error "expected expression before" } */ |
26 int b[10]; | 26 int b[10]; |
27 foo (b); | 27 foo (b); |