1// { dg-options "-std=gnu++0x" } 2// { dg-do compile } 3 4// Copyright (C) 2009 Free Software Foundation, Inc. 5// 6// This file is part of the GNU ISO C++ Library. This library is free 7// software; you can redistribute it and/or modify it under the 8// terms of the GNU General Public License as published by the 9// Free Software Foundation; either version 3, or (at your option) 10// any later version. 11// 12// This library is distributed in the hope that it will be useful, 13// but WITHOUT ANY WARRANTY; without even the implied warranty of 14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15// GNU General Public License for more details. 16// 17// You should have received a copy of the GNU General Public License along 18// with this library; see the file COPYING3. If not see 19// <http://www.gnu.org/licenses/>. 20 21#include <atomic> 22 23void test01() 24{ 25 // Not global scoped, only namespace std. 26 using memory_order; 27 using memory_order_relaxed; 28 using memory_order_consume; 29 using memory_order_acquire; 30 using memory_order_release; 31 using memory_order_acq_rel; 32 using memory_order_seq_cst; 33 34 using atomic_flag; 35 36 using atomic_bool; 37 using atomic_char; 38 using atomic_schar; 39 using atomic_uchar; 40 using atomic_short; 41 using atomic_ushort; 42 using atomic_int; 43 using atomic_uint; 44 using atomic_long; 45 using atomic_ulong; 46 using atomic_llong; 47 using atomic_ullong; 48 using atomic_wchar_t; 49 using atomic_char16_t; 50 using atomic_char32_t; 51 52 using atomic_address; 53} 54 55// { dg-error "expected nested-name-specifier" "" { target *-*-* } 26 } 56// { dg-error "expected nested-name-specifier" "" { target *-*-* } 27 } 57// { dg-error "expected nested-name-specifier" "" { target *-*-* } 28 } 58// { dg-error "expected nested-name-specifier" "" { target *-*-* } 29 } 59// { dg-error "expected nested-name-specifier" "" { target *-*-* } 30 } 60// { dg-error "expected nested-name-specifier" "" { target *-*-* } 31 } 61// { dg-error "expected nested-name-specifier" "" { target *-*-* } 32 } 62// { dg-error "expected nested-name-specifier" "" { target *-*-* } 34 } 63// { dg-error "expected nested-name-specifier" "" { target *-*-* } 36 } 64// { dg-error "expected nested-name-specifier" "" { target *-*-* } 37 } 65// { dg-error "expected nested-name-specifier" "" { target *-*-* } 38 } 66// { dg-error "expected nested-name-specifier" "" { target *-*-* } 39 } 67// { dg-error "expected nested-name-specifier" "" { target *-*-* } 40 } 68// { dg-error "expected nested-name-specifier" "" { target *-*-* } 41 } 69// { dg-error "expected nested-name-specifier" "" { target *-*-* } 42 } 70// { dg-error "expected nested-name-specifier" "" { target *-*-* } 43 } 71// { dg-error "expected nested-name-specifier" "" { target *-*-* } 44 } 72// { dg-error "expected nested-name-specifier" "" { target *-*-* } 45 } 73// { dg-error "expected nested-name-specifier" "" { target *-*-* } 46 } 74// { dg-error "expected nested-name-specifier" "" { target *-*-* } 47 } 75// { dg-error "expected nested-name-specifier" "" { target *-*-* } 48 } 76// { dg-error "expected nested-name-specifier" "" { target *-*-* } 49 } 77// { dg-error "expected nested-name-specifier" "" { target *-*-* } 50 } 78// { dg-error "expected nested-name-specifier" "" { target *-*-* } 52 } 79