// PR c++/52637
-// { dg-do compile { target c++11 } }
-// { dg-options "-g" }
+// { dg-options "-g -std=c++11" }
template <typename T>
struct C { };
// 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;
-// { dg-do compile { target c++11 } }
+/* { dg-options "-std=gnu++0x" } */
typedef __SIZE_TYPE__ size_t;
namespace std __attribute__ ((__visibility__ ("default"))) {
-// { 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
{
-/* { 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;
-// { dg-do compile { target c++11 } }
+/* { dg-options "-std=gnu++0x" } */
struct A
{
-/* { dg-do compile { target c++11 } } */
+/* { dg-options "-std=c++11" } */
void 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
{
-/* { 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
-// { dg-do compile { target c++11 } }
+// { dg-do compile }
+// { dg-options "-std=c++0x" }
struct Iter
{
-// { 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;
/* 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);
-// { 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;
-// { 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;
-// // { 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)));
-// // { 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)));
-// // { 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
-// { 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;
-// { 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)));
-// { 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)));
-// { dg-do run { target c++11 } }
+// { dg-options "-std=c++11" }
+// { dg-do run }
#if __SIZEOF_FLOAT__ == 4
-// { 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)));
-// { 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;
-// { 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;
-// { 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)));