]> granicus.if.org Git - clang/commitdiff
Test case for r167363.
authorLang Hames <lhames@gmail.com>
Sun, 4 Nov 2012 05:08:08 +0000 (05:08 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 4 Nov 2012 05:08:08 +0000 (05:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167369 91177308-0d34-0410-b5e6-96231b3b80d8

test/Parser/pragma-fp-contract.c

index fa2bb11d9c7d5691065237ad68bf8f1e4189608a..568c0a0a88ba9d11044ad32bfb4fbb4b7532b533 100644 (file)
@@ -5,3 +5,8 @@ void f1(void) {
 /* expected-error@+1 {{'#pragma fp_contract' should only appear at file scope or at the start of a compound expression}} */
 #pragma STDC FP_CONTRACT ON
 }
+
+void f2(void) {
+  #pragma STDC FP_CONTRACT OFF
+  #pragma STDC FP_CONTRACT ON 
+}