re PR testsuite/66621 (Mistakenly unsupported tests in g++.dg/torture/)

PR testsuite/66621
	* g++.dg/debug, g++.dg/torture: Use dg-options rather than target
	requirements for C++11 tests.

From-SVN: r224749
This commit is contained in:
Jason Merrill 2015-06-22 13:24:37 -04:00
parent e8a3c59754
commit 33273def7c
25 changed files with 45 additions and 31 deletions

View File

@ -1,6 +1,5 @@
// PR c++/52637
// { dg-do compile { target c++11 } }
// { dg-options "-g" }
// { dg-options "-g -std=c++11" }
template <typename T>
struct C { };

View File

@ -1,6 +1,5 @@
// Test that debugging backends don't crash on NULLPTR_TYPE.
// { dg-do compile { target c++11 } }
// { dg-options "-fabi-version=0" }
// { dg-options "-std=c++0x -fabi-version=0" }
typedef decltype(nullptr) nullptr_t;

View File

@ -1,4 +1,4 @@
// { dg-do compile { target c++11 } }
/* { dg-options "-std=gnu++0x" } */
typedef __SIZE_TYPE__ size_t;
namespace std __attribute__ ((__visibility__ ("default"))) {

View File

@ -1,5 +1,5 @@
// { dg-do compile { target c++11 } }
// { dg-options "-fnon-call-exceptions" }
// { dg-do compile }
// { dg-options "-std=c++0x -fnon-call-exceptions" }
void foo (int *k) noexcept
{

View File

@ -1,5 +1,5 @@
/* { dg-do run { target c++11 } } */
/* { dg-options "-fno-tree-forwprop" } */
/* { dg-do run } */
/* { dg-options "-std=c++0x -fno-tree-forwprop" } */
typedef __SIZE_TYPE__ size_t;

View File

@ -1,4 +1,4 @@
// { dg-do compile { target c++11 } }
/* { dg-options "-std=gnu++0x" } */
struct A
{

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target c++11 } } */
/* { dg-options "-std=c++11" } */
void gg();
static __typeof(gg) __gthrw_gg __attribute__((__weakref__("gg")));

View File

@ -1,4 +1,5 @@
// { dg-do compile { target c++11 } }
// { dg-do compile }
// { dg-options "-std=c++11" }
namespace std
{

View File

@ -1,5 +1,5 @@
/* { dg-do compile { target c++11 } } */
/* { dg-options "-fno-inline" } */
/* { dg-do compile } */
/* { dg-options "-std=gnu++0x -fno-inline" } */
/* { dg-add-options bind_pic_locally } */
struct B

View File

@ -1,4 +1,5 @@
// { dg-do compile { target c++11 } }
// { dg-do compile }
// { dg-options "-std=c++0x" }
struct Iter
{

View File

@ -1,5 +1,5 @@
// { dg-do compile { target c++11 } }
// { dg-options "-fprofile-use" }
// { dg-do compile }
// { dg-options "-fprofile-use -std=gnu++11" }
class A {
int m_fn1() const;

View File

@ -1,6 +1,7 @@
/* Driver fragment for __builtin_shuffle of any vector shape. */
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
extern "C" void abort(void);

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned short V __attribute__((vector_size(32)));
typedef V VI;

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned char V __attribute__((vector_size(16)));
typedef V VI;

View File

@ -1,4 +1,5 @@
// // { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// // { dg-do run }
#if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8
typedef double V __attribute__((vector_size(16)));
typedef unsigned long long VI __attribute__((vector_size(16)));

View File

@ -1,4 +1,5 @@
// // { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// // { dg-do run }
#if __SIZEOF_LONG_LONG__ == 8
typedef unsigned long long V __attribute__((vector_size(16)));

View File

@ -1,4 +1,5 @@
// // { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// // { dg-do run }
#if __SIZEOF_FLOAT__ == 4
typedef float V __attribute__((vector_size(8)));
# if __SIZEOF_INT__ == 4

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_INT__ == 4
typedef unsigned int V __attribute__((vector_size(8)));
typedef V VI;

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8
typedef double V __attribute__((vector_size(32)));

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_LONG_LONG__ == 8
typedef unsigned long long V __attribute__((vector_size(32)));

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_FLOAT__ == 4

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_INT__ == 4
typedef unsigned int V __attribute__((vector_size(16)));

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned short V __attribute__((vector_size(16)));
typedef V VI;

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned char V __attribute__((vector_size(8)));
typedef V VI;

View File

@ -1,4 +1,5 @@
// { dg-do run { target c++11 } }
// { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_INT__ == 4
typedef unsigned int V __attribute__((vector_size(32)));