summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/exprs.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-03-18 23:37:25 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-03-18 23:37:25 +0000
commit9cf21ae068bd89f3473b811e4e5567aea6e26185 (patch)
tree00cef493af4edee52c329eff5b4cb904c3388521 /clang/test/Sema/exprs.c
parent2d0edec994ebf22ba0dc9dccac215b1a9948e307 (diff)
downloadbcm5719-llvm-9cf21ae068bd89f3473b811e4e5567aea6e26185.tar.gz
bcm5719-llvm-9cf21ae068bd89f3473b811e4e5567aea6e26185.zip
Diagnose uses of 'alignof' on functions in -pedantic mode.
llvm-svn: 177354
Diffstat (limited to 'clang/test/Sema/exprs.c')
-rw-r--r--clang/test/Sema/exprs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c
index df3e25857c4..2fb17e4880c 100644
--- a/clang/test/Sema/exprs.c
+++ b/clang/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;
OpenPOWER on IntegriCloud