diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/other/operator1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/other/operator1.C | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/other/operator1.C b/gcc/testsuite/g++.dg/other/operator1.C new file mode 100644 index 000000000..86841c999 --- /dev/null +++ b/gcc/testsuite/g++.dg/other/operator1.C @@ -0,0 +1,9 @@ +// PR c++/27547 +// { dg-do compile } + +int operator=(int); // { dg-error "member function" } + +void foo() +{ + operator=(0); // { dg-error "not defined" } +} |