1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc f1(void)3*f4a2713aSLionel Sambucvoid f1(void) { 4*f4a2713aSLionel Sambuc int x = 0; 5*f4a2713aSLionel Sambuc /* expected-error@+1 {{'#pragma fp_contract' can only appear at file scope or at the start of a compound statement}} */ 6*f4a2713aSLionel Sambuc #pragma STDC FP_CONTRACT ON 7*f4a2713aSLionel Sambuc } 8*f4a2713aSLionel Sambuc f2(void)9*f4a2713aSLionel Sambucvoid f2(void) { 10*f4a2713aSLionel Sambuc #pragma STDC FP_CONTRACT OFF 11*f4a2713aSLionel Sambuc #pragma STDC FP_CONTRACT ON 12*f4a2713aSLionel Sambuc } 13