-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
-// Copyright (C) 2011-2014 Free Software Foundation, Inc.
+// Copyright (C) 2011-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
void
test01()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void
test02()
{
- bool test __attribute__((unused)) = true;
-
V s1[] = { 10, 20, 1, 11, 2, 12, 3, 13, 4, 14, 5, 15, 6, 16, 7,
17, 8, 18, 9, 19 };
const int N = sizeof(s1) / sizeof(V);
void test03()
{
- bool test __attribute__((unused)) = true;
-
V vvs[] = { 2, 0 };
std::sort(vvs, vvs + 2);
VERIFY( vvs[0].ok && vvs[0].val == 0 );