diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-18 23:37:25 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-03-18 23:37:25 +0000 |
commit | 7132be1ef46248746990590b91e693dfc3cce251 (patch) | |
tree | 64d2628d16262b1e3b87b3308c2186507ad781f8 /test/Sema/exprs.c | |
parent | a5f80b2ea6d30c5055c067530d63bb0dcaf937d0 (diff) |
Diagnose uses of 'alignof' on functions in -pedantic mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/exprs.c')
-rw-r--r-- | test/Sema/exprs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/exprs.c b/test/Sema/exprs.c index df3e25857c..2fb17e4880 100644 --- a/test/Sema/exprs.c +++ b/test/Sema/exprs.c @@ -94,7 +94,7 @@ int test8(void) { struct f { int x : 4; float y[]; }; int test9(struct f *P) { int R; - R = __alignof(P->x); // expected-error {{invalid application of '__alignof' to bit-field}} + R = __alignof(P->x); // expected-error {{invalid application of 'alignof' to bit-field}} R = __alignof(P->y); // ok. R = sizeof(P->x); // expected-error {{invalid application of 'sizeof' to bit-field}} return R; |