diff options
author | Lang Hames <lhames@gmail.com> | 2012-10-21 19:56:13 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2012-10-21 19:56:13 +0000 |
commit | 87234c83831dfb18247135add2bf14198604b3b4 (patch) | |
tree | a97cd838677d6a41522da00f2f34e51b4aa955ed | |
parent | 6592c770777069678026f535d723779b0150205e (diff) |
Fix typo, make test case slightly more reabable. Thanks to Dmitri Gribenko for
the suggestions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166400 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Basic/DiagnosticParseKinds.td | 2 | ||||
-rw-r--r-- | test/Parser/pragma-fp-contract.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Basic/DiagnosticParseKinds.td b/include/clang/Basic/DiagnosticParseKinds.td index e01cdb77e5..51270ab438 100644 --- a/include/clang/Basic/DiagnosticParseKinds.td +++ b/include/clang/Basic/DiagnosticParseKinds.td @@ -729,7 +729,7 @@ def warn_pragma_unused_expected_var : Warning< "expected '#pragma unused' argument to be a variable name">; def warn_pragma_unused_expected_punc : Warning< "expected ')' or ',' in '#pragma unused'">; -// - #pragam fp_contract +// - #pragma fp_contract def err_pragma_fp_contract_scope : Error< "'#pragma fp_contract' should only appear at file scope or at the start of a " "compound expression">; diff --git a/test/Parser/pragma-fp-contract.c b/test/Parser/pragma-fp-contract.c index 619053f465..fa2bb11d9c 100644 --- a/test/Parser/pragma-fp-contract.c +++ b/test/Parser/pragma-fp-contract.c @@ -2,5 +2,6 @@ void f1(void) { int x = 0; -/* expected-error {{'#pragma fp_contract' should only appear at file scope or at the start of a compound expression}} */ #pragma STDC FP_CONTRACT ON +/* 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 } |