diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C index 5a2ec76e3a7..6403ea16e87 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-function2.C @@ -38,7 +38,7 @@ constexpr int g(int x, int n) // error: body not just ‘‘return expr’’ } // { dg-error "not a return-statement" } constexpr int -bar(int x, int y) { return x + y + x * y; } // { dg-error "previously" } +bar(int x, int y) { return x + y + x * y; } // { dg-message "previously" } int bar(int x, int y) // { dg-error "redefinition" } { return x * 2 + 3 * y; } |