1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 
3 void f1(void) {
4   int x = 0;
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
7 }
8 
9 void f2(void) {
10   #pragma STDC FP_CONTRACT OFF
11   #pragma STDC FP_CONTRACT ON
12 }
13