diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/g++.dg/ext')
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-2.C | 2 | ||||
-rw-r--r-- | gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr16.C | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-2.C b/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-2.C index eb8a929..e14e6f8 100644 --- a/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-2.C +++ b/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-2.C @@ -1,6 +1,6 @@ /* { dg-do compile { target powerpc*-*-* } } */ /* { dg-require-effective-target powerpc_altivec_ok } */ -/* { dg-options "-maltivec -Wall -Wno-unused-but-set-variable" } */ +/* { dg-options "-maltivec -Wall -Wno-unused-but-set-variable -Wno-deprecated" } */ /* This test checks if AltiVec builtins accept const-qualified arguments. */ diff --git a/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr16.C b/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr16.C new file mode 100644 index 0000000..ddce40c --- /dev/null +++ b/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr16.C @@ -0,0 +1,10 @@ +// PR c++/63455 +// { dg-options "-std=gnu++11" } + +int main() +{ + int x = 0; + + // without '+0', gcc 4.6 gives a different error (no ICE though) + decltype(({ int y = x; y; })+0) v1 = 0; +} |