1 # Handlers for additional dg-xxx keywords in tests.
3 # Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 proc dg-require-c-std { args } {
21 if { ![ check_v3_target_c_std ] } {
22 upvar dg-do-what dg-do-what
23 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
29 proc dg-require-debug-mode { args } {
30 if { ![ check_v3_target_debug_mode ] } {
31 upvar dg-do-what dg-do-what
32 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
38 proc dg-require-parallel-mode { args } {
39 if { ![ check_v3_target_parallel_mode ] } {
40 upvar dg-do-what dg-do-what
41 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
47 proc dg-require-fileio { args } {
48 if { ![ check_v3_target_fileio ] } {
49 upvar dg-do-what dg-do-what
50 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
56 proc dg-require-namedlocale { args } {
57 if { ![ check_v3_target_namedlocale ] } {
58 upvar dg-do-what dg-do-what
59 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
65 proc dg-require-sharedlib { args } {
66 if { ![ check_v3_target_sharedlib ] } {
67 upvar dg-do-what dg-do-what
68 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
74 proc dg-require-time { args } {
75 if { ![ check_v3_target_time ] } {
76 upvar dg-do-what dg-do-what
77 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
83 proc dg-require-rvalref { args } {
84 if { ![ check_v3_target_rvalref ] } {
85 upvar dg-do-what dg-do-what
86 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
92 proc dg-require-cstdint { args } {
93 if { ![ check_v3_target_cstdint ] } {
94 upvar dg-do-what dg-do-what
95 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]
101 proc dg-require-atomic-builtins { args } {
102 if { ![ check_v3_target_atomic_builtins ] } {
103 upvar dg-do-what dg-do-what
104 set dg-do-what [list [lindex ${dg-do-what} 0] "N" "P"]