]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/Parser/pragma-fp-contract.c
Vendor import of clang release_38 branch r258549:
[FreeBSD/FreeBSD.git] / test / Parser / pragma-fp-contract.c
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 }