summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/enum.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-01-15 03:51:30 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-01-15 03:51:30 +0000
commit2ec4061e39908f73bdb7d75da9f4374d001809eb (patch)
treef14622407fbcf50017bfb30bf1170bf2c7686645 /clang/test/SemaCXX/enum.cpp
parentb19ac0d6ca6c49de2e45c3c987d0894af2f4c54e (diff)
downloadbcm5719-llvm-2ec4061e39908f73bdb7d75da9f4374d001809eb.tar.gz
bcm5719-llvm-2ec4061e39908f73bdb7d75da9f4374d001809eb.zip
Pedantic diagnostic correction: in C++, we have integral constant expressions,
not integer constant expressions. In passing, fix the 'folding is an extension' diagnostic to not claim we're accepting the code, since that's not true in -pedantic-errors mode, and add this diagnostic to -Wgnu. llvm-svn: 148209
Diffstat (limited to 'clang/test/SemaCXX/enum.cpp')
-rw-r--r--clang/test/SemaCXX/enum.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/enum.cpp b/clang/test/SemaCXX/enum.cpp
index b4a050cb090..370e1c34d29 100644
--- a/clang/test/SemaCXX/enum.cpp
+++ b/clang/test/SemaCXX/enum.cpp
@@ -88,7 +88,7 @@ typedef enum { }; // expected-warning{{typedef requires a name}}
// PR7921
enum PR7921E {
- PR7921V = (PR7921E)(123) // expected-error {{expression is not an integer constant expression}}
+ PR7921V = (PR7921E)(123) // expected-error {{expression is not an integral constant expression}}
};
void PR8089() {
OpenPOWER on IntegriCloud