Commit 33273def by Jason Merrill

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
parent e8a3c597
// PR c++/52637 // PR c++/52637
// { dg-do compile { target c++11 } } // { dg-options "-g -std=c++11" }
// { dg-options "-g" }
template <typename T> template <typename T>
struct C { }; struct C { };
......
// Test that debugging backends don't crash on NULLPTR_TYPE. // Test that debugging backends don't crash on NULLPTR_TYPE.
// { dg-do compile { target c++11 } } // { dg-options "-std=c++0x -fabi-version=0" }
// { dg-options "-fabi-version=0" }
typedef decltype(nullptr) nullptr_t; typedef decltype(nullptr) nullptr_t;
......
// { dg-do compile { target c++11 } } /* { dg-options "-std=gnu++0x" } */
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
namespace std __attribute__ ((__visibility__ ("default"))) { namespace std __attribute__ ((__visibility__ ("default"))) {
......
// { dg-do compile { target c++11 } } // { dg-do compile }
// { dg-options "-fnon-call-exceptions" } // { dg-options "-std=c++0x -fnon-call-exceptions" }
void foo (int *k) noexcept void foo (int *k) noexcept
{ {
......
/* { dg-do run { target c++11 } } */ /* { dg-do run } */
/* { dg-options "-fno-tree-forwprop" } */ /* { dg-options "-std=c++0x -fno-tree-forwprop" } */
typedef __SIZE_TYPE__ size_t; typedef __SIZE_TYPE__ size_t;
......
// { dg-do compile { target c++11 } } /* { dg-options "-std=gnu++0x" } */
struct A struct A
{ {
......
/* { dg-do compile { target c++11 } } */ /* { dg-options "-std=c++11" } */
void gg(); void gg();
static __typeof(gg) __gthrw_gg __attribute__((__weakref__("gg"))); static __typeof(gg) __gthrw_gg __attribute__((__weakref__("gg")));
......
// { dg-do compile { target c++11 } } // { dg-do compile }
// { dg-options "-std=c++11" }
namespace std namespace std
{ {
......
/* { dg-do compile { target c++11 } } */ /* { dg-do compile } */
/* { dg-options "-fno-inline" } */ /* { dg-options "-std=gnu++0x -fno-inline" } */
/* { dg-add-options bind_pic_locally } */ /* { dg-add-options bind_pic_locally } */
struct B struct B
......
// { dg-do compile { target c++11 } } // { dg-do compile }
// { dg-options "-std=c++0x" }
struct Iter struct Iter
{ {
......
// { dg-do compile { target c++11 } } // { dg-do compile }
// { dg-options "-fprofile-use" } // { dg-options "-fprofile-use -std=gnu++11" }
class A { class A {
int m_fn1() const; int m_fn1() const;
......
/* Driver fragment for __builtin_shuffle of any vector shape. */ /* 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); extern "C" void abort(void);
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned short V __attribute__((vector_size(32))); typedef unsigned short V __attribute__((vector_size(32)));
typedef V VI; typedef V VI;
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned char V __attribute__((vector_size(16))); typedef unsigned char V __attribute__((vector_size(16)));
typedef V VI; typedef V VI;
......
// // { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// // { dg-do run }
#if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8 #if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8
typedef double V __attribute__((vector_size(16))); typedef double V __attribute__((vector_size(16)));
typedef unsigned long long VI __attribute__((vector_size(16))); typedef unsigned long long VI __attribute__((vector_size(16)));
......
// // { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// // { dg-do run }
#if __SIZEOF_LONG_LONG__ == 8 #if __SIZEOF_LONG_LONG__ == 8
typedef unsigned long long V __attribute__((vector_size(16))); typedef unsigned long long V __attribute__((vector_size(16)));
......
// // { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// // { dg-do run }
#if __SIZEOF_FLOAT__ == 4 #if __SIZEOF_FLOAT__ == 4
typedef float V __attribute__((vector_size(8))); typedef float V __attribute__((vector_size(8)));
# if __SIZEOF_INT__ == 4 # if __SIZEOF_INT__ == 4
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_INT__ == 4 #if __SIZEOF_INT__ == 4
typedef unsigned int V __attribute__((vector_size(8))); typedef unsigned int V __attribute__((vector_size(8)));
typedef V VI; typedef V VI;
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8 #if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8
typedef double V __attribute__((vector_size(32))); typedef double V __attribute__((vector_size(32)));
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_LONG_LONG__ == 8 #if __SIZEOF_LONG_LONG__ == 8
typedef unsigned long long V __attribute__((vector_size(32))); typedef unsigned long long V __attribute__((vector_size(32)));
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_FLOAT__ == 4 #if __SIZEOF_FLOAT__ == 4
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_INT__ == 4 #if __SIZEOF_INT__ == 4
typedef unsigned int V __attribute__((vector_size(16))); typedef unsigned int V __attribute__((vector_size(16)));
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned short V __attribute__((vector_size(16))); typedef unsigned short V __attribute__((vector_size(16)));
typedef V VI; typedef V VI;
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
typedef unsigned char V __attribute__((vector_size(8))); typedef unsigned char V __attribute__((vector_size(8)));
typedef V VI; typedef V VI;
......
// { dg-do run { target c++11 } } // { dg-options "-std=c++11" }
// { dg-do run }
#if __SIZEOF_INT__ == 4 #if __SIZEOF_INT__ == 4
typedef unsigned int V __attribute__((vector_size(32))); typedef unsigned int V __attribute__((vector_size(32)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment