1 // RUN: %clang_cc1 -fsyntax-only -verify %s
5 /* expected-error@+1 {{'#pragma fp_contract' can only appear at file scope or at the start of a compound statement}} */
6 #pragma STDC FP_CONTRACT ON
10 #pragma STDC FP_CONTRACT OFF
11 #pragma STDC FP_CONTRACT ON
15 // expected-error@+1 {{this pragma cannot appear in struct declaration}}
16 #pragma STDC FP_CONTRACT ON
23 // expected-error@+1 {{this pragma cannot appear in union declaration}}
24 #pragma STDC FP_CONTRACT ON
29 // expected-error@+1 {{this pragma cannot appear in class declaration}}
30 #pragma STDC FP_CONTRACT ON