aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/fp-contract-pragma.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-10-21 01:10:01 +0000
committerLang Hames <lhames@gmail.com>2012-10-21 01:10:01 +0000
commit860022ccf71b3d63acd29912af970dad655630f7 (patch)
tree62110f8a1c8640d31ee8706d27cb4cad80b29393 /test/CodeGen/fp-contract-pragma.cpp
parentc6f84cf73e0bc04faacd1a9b7845e014e7fac21e (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.cpp1
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
}
};