diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/ext/complit14.C')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/ext/complit14.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/ext/complit14.C b/gcc-4.9/gcc/testsuite/g++.dg/ext/complit14.C new file mode 100644 index 000000000..aed765dc5 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/ext/complit14.C @@ -0,0 +1,11 @@ +// PR c++/61614 +// { dg-options "" } + +int Fn (...); + +void +Test () +{ + int j = Fn ((const int[]) { 0 }); // OK + unsigned long sz = sizeof Fn ((const int[]) { 0 }); // Error +} |