xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/pragma-fp-contract.c (revision 0b98e8aad89f2bd4ba80b523d73cf29e9dd82ce1)
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