diff options
Diffstat (limited to 'test/SemaCXX/warn-static-const-float.cpp')
-rw-r--r-- | test/SemaCXX/warn-static-const-float.cpp | 5 |
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 { |