[cfe-commits] r167369 - /cfe/trunk/test/Parser/pragma-fp-contract.c
Lang Hames
lhames at gmail.com
Sat Nov 3 22:08:08 PDT 2012
Author: lhames
Date: Sun Nov 4 00:08:08 2012
New Revision: 167369
URL: http://llvm.org/viewvc/llvm-project?rev=167369&view=rev
Log:
Test case for r167363.
Modified:
cfe/trunk/test/Parser/pragma-fp-contract.c
Modified: cfe/trunk/test/Parser/pragma-fp-contract.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/pragma-fp-contract.c?rev=167369&r1=167368&r2=167369&view=diff
==============================================================================
--- cfe/trunk/test/Parser/pragma-fp-contract.c (original)
+++ cfe/trunk/test/Parser/pragma-fp-contract.c Sun Nov 4 00:08:08 2012
@@ -5,3 +5,8 @@
/* expected-error at +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
+}
More information about the cfe-commits
mailing list