diff options
author | Lang Hames <lhames@gmail.com> | 2012-10-21 01:10:01 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-10-21 01:10:01 +0000 |
commit | 860022ccf71b3d63acd29912af970dad655630f7 (patch) | |
tree | 62110f8a1c8640d31ee8706d27cb4cad80b29393 /test/CodeGen/fp-contract-pragma.cpp | |
parent | c6f84cf73e0bc04faacd1a9b7845e014e7fac21e (diff) |
When used in a compound expression FP_CONTRACT should proceed all explicit
declarations and statements. Emit an error if the FP_CONTRACT is used
later in a compound statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/fp-contract-pragma.cpp')
-rw-r--r-- | test/CodeGen/fp-contract-pragma.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/test/CodeGen/fp-contract-pragma.cpp b/test/CodeGen/fp-contract-pragma.cpp index edb04d82ef..afd8c43121 100644 --- a/test/CodeGen/fp-contract-pragma.cpp +++ b/test/CodeGen/fp-contract-pragma.cpp @@ -39,7 +39,6 @@ template<typename T> class fp_contract_4 { float method(float a, float b, float c) { #pragma STDC FP_CONTRACT ON return a * b + c; - #pragma STDC FP_CONTRACT OFF } }; |