diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/other/assign1.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/other/assign1.C | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/other/assign1.C b/gcc-4.9/gcc/testsuite/g++.dg/other/assign1.C new file mode 100644 index 000000000..1983680dd --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/other/assign1.C @@ -0,0 +1,7 @@ +// PR c++/27716 +// { dg-do compile } + +int foo() +{ + return i ""= i; // { dg-error "not declared|string constant" } +} |