summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2012-10-21 19:56:13 +0000
committerLang Hames <lhames@gmail.com>2012-10-21 19:56:13 +0000
commit720ae09c00f36243e0d91c86255942d1b5a10593 (patch)
tree4f6959b6be4c5bb125513b0ccbfe0d380ebd1eb1
parentf77f224df9e85747fba87968ad8f812d4528e532 (diff)
downloadbcm5719-llvm-720ae09c00f36243e0d91c86255942d1b5a10593.tar.gz
bcm5719-llvm-720ae09c00f36243e0d91c86255942d1b5a10593.zip
Fix typo, make test case slightly more reabable. Thanks to Dmitri Gribenko for
the suggestions. llvm-svn: 166400
-rw-r--r--clang/include/clang/Basic/DiagnosticParseKinds.td2
-rw-r--r--clang/test/Parser/pragma-fp-contract.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/Basic/DiagnosticParseKinds.td b/clang/include/clang/Basic/DiagnosticParseKinds.td
index e01cdb77e55..51270ab4380 100644
--- a/clang/include/clang/Basic/DiagnosticParseKinds.td
+++ b/clang/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/clang/test/Parser/pragma-fp-contract.c b/clang/test/Parser/pragma-fp-contract.c
index 619053f4655..fa2bb11d9c7 100644
--- a/clang/test/Parser/pragma-fp-contract.c
+++ b/clang/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
}
OpenPOWER on IntegriCloud