aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-static-const-float.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-01-29 22:26:08 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-01-29 22:26:08 +0000
commita367e9de80eb05e78f06dc35c1e050799e735282 (patch)
tree3d7a73d0ea47b3123f80d52dbc6ce004ca047e7d /test/SemaCXX/warn-static-const-float.cpp
parent6933e3b037fcb15b68f41d2b91ee01db45a2d43a (diff)
Move -Wstatic-float-init fixit into a note & don't recover as if constexpr
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/warn-static-const-float.cpp')
-rw-r--r--test/SemaCXX/warn-static-const-float.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/SemaCXX/warn-static-const-float.cpp b/test/SemaCXX/warn-static-const-float.cpp
index a669c85903..481a410489 100644
--- a/test/SemaCXX/warn-static-const-float.cpp
+++ b/test/SemaCXX/warn-static-const-float.cpp
@@ -10,9 +10,10 @@
#if NONE
// expected-no-diagnostics
#elif ERR
-// expected-error@19 {{in-class initializer for static data member of type 'const double' requires 'constexpr' specifier}}
+// expected-error@20 {{in-class initializer for static data member of type 'const double' requires 'constexpr' specifier}}
+// expected-note@20 {{add 'constexpr'}}
#elif EXT
-// expected-warning@19 {{in-class initializer for static data member of type 'const double' is a GNU extension}}
+// expected-warning@20 {{in-class initializer for static data member of type 'const double' is a GNU extension}}
#endif
struct X {