1 // { dg-do compile }
2 // { dg-options "-fno-rtti -fno-exceptions -fno-threadsafe-statics" }
3 
4 //  C++98 features with explicit opt-out:
5 
6 #ifndef __cpp_rtti
7 #  error "__cpp_rtti" // { dg-error "error" }
8 #endif
9 
10 #ifndef __cpp_exceptions
11 #  error "__cpp_exceptions" // { dg-error "error" }
12 #endif
13 
14 //  C++11 features with explicit opt-out:
15 
16 #ifndef __cpp_threadsafe_static_init
17 #  error "__cpp_threadsafe_static_init" // { dg-error "error" }
18 #endif
19