diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60332.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60332.C | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60332.C b/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60332.C new file mode 100644 index 000000000..c0a67a9f6 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/pr60332.C @@ -0,0 +1,6 @@ +// PR c++/60332 +// { dg-do compile { target c++1y } } + +void foo(); + +auto f = (auto(*)())(&foo); // { dg-error "invalid" } |