diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/cpp0x/initlist19.C')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/initlist19.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/initlist19.C b/gcc/testsuite/g++.dg/cpp0x/initlist19.C new file mode 100644 index 000000000..9cb197c9b --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/initlist19.C @@ -0,0 +1,10 @@ +// { dg-options "-std=c++0x" } + +// Allow other errors, too +// { dg-prune-output "error" } + +void f(double); +int main() +{ + f({{1}}); // { dg-error "too many braces" } +} |