summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/constructor-attribute.c
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-07-24 14:51:23 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-07-24 14:51:23 +0000
commit31f42318d833f54a7535dbe63244e765e98780dc (patch)
tree5206280b0e7010a0586c785d6a4149bde6771c22 /clang/test/Sema/constructor-attribute.c
parent9414665a3b0bd525f84d76e24048ca60ebe6c710 (diff)
downloadbcm5719-llvm-31f42318d833f54a7535dbe63244e765e98780dc.tar.gz
bcm5719-llvm-31f42318d833f54a7535dbe63244e765e98780dc.zip
Improving the "integer constant too large" diagnostics based on post-commit feedback from Richard Smith. Amends r213657.
llvm-svn: 213865
Diffstat (limited to 'clang/test/Sema/constructor-attribute.c')
-rw-r--r--clang/test/Sema/constructor-attribute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/constructor-attribute.c b/clang/test/Sema/constructor-attribute.c
index 9460c75e32a..3a537d424ba 100644
--- a/clang/test/Sema/constructor-attribute.c
+++ b/clang/test/Sema/constructor-attribute.c
@@ -5,7 +5,7 @@ int f() __attribute__((constructor));
int f() __attribute__((constructor(1)));
int f() __attribute__((constructor(1,2))); // expected-error {{'constructor' attribute takes no more than 1 argument}}
int f() __attribute__((constructor(1.0))); // expected-error {{'constructor' attribute requires an integer constant}}
-int f() __attribute__((constructor(0x100000000))); // expected-error {{integer constant is larger than the largest 32-bit unsigned integer type}}
+int f() __attribute__((constructor(0x100000000))); // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be represented in a 32-bit unsigned integer type}}
int x __attribute__((destructor)); // expected-warning {{'destructor' attribute only applies to functions}}
int f() __attribute__((destructor));
OpenPOWER on IntegriCloud