diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/qual1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/qual1.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/qual1.C b/gcc/testsuite/g++.dg/other/qual1.C new file mode 100644 index 000000000..e4bae2315 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/qual1.C @@ -0,0 +1,11 @@ +// PR c++/28257 +// { dg-do compile } + +struct A +{ + int i; + void foo() + { + int A::i = i; // { dg-error "qualified" } + } +}; |