diff options
author | Lang Hames <lhames@gmail.com> | 2012-11-04 05:08:08 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-11-04 05:08:08 +0000 |
commit | 3f320aa93253cc69d03579b37fd0724055883a6e (patch) | |
tree | fc98d59578188f95420223c8fa7be599faf59e5a | |
parent | 191db6dc0d6290b5f2993691e409ff2dc8b4345e (diff) |
Test case for r167363.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167369 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Parser/pragma-fp-contract.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Parser/pragma-fp-contract.c b/test/Parser/pragma-fp-contract.c index fa2bb11d9c..568c0a0a88 100644 --- a/test/Parser/pragma-fp-contract.c +++ b/test/Parser/pragma-fp-contract.c @@ -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 +} |