}
# These tests don't rely on the debug format.
-gdb_test "ptype _Atomic int" "type = _Atomic int"
-gdb_test "ptype int * restrict" "type = int \\* restrict"
+with_test_prefix nodebug {
+ if { [prepare_for_testing "failed to prepare" $binfile $srcfile {nodebug}] } {
+ return 0
+ }
-# C++ does not have "restrict".
-gdb_test_no_output "set lang c++"
-with_test_prefix c++ {
- gdb_test "ptype int * restrict" "A syntax error in expression.*"
+ gdb_test "ptype _Atomic int" "type = _Atomic int"
+ gdb_test "ptype int * restrict" "type = int \\* restrict"
- # There is a GCC extension for __restrict__, though.
- gdb_test "ptype int * __restrict__" "type = int \\* __restrict__"
+ # C++ does not have "restrict".
+ gdb_test_no_output "set lang c++"
+ with_test_prefix c++ {
+ gdb_test "ptype int * restrict" "A syntax error in expression.*"
+
+ # There is a GCC extension for __restrict__, though.
+ gdb_test "ptype int * __restrict__" "type = int \\* __restrict__"
+ }
}