diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.law/visibility5.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.law/visibility5.C | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.law/visibility5.C b/gcc/testsuite/g++.old-deja/g++.law/visibility5.C new file mode 100644 index 000000000..d8e73e7c9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.law/visibility5.C @@ -0,0 +1,17 @@ +// { dg-do assemble } +// GROUPS passed visibility + +class a { + +private: + a (int i);// { dg-error "" } .* + +public: + a (); +}; + +void test () +{ + a *ap = new a; + a *ap2 = new a (3);// { dg-error "" } .* +} |