]> granicus.if.org Git - clang/commitdiff
Fix typo, make test case slightly more reabable. Thanks to Dmitri Gribenko for
authorLang Hames <lhames@gmail.com>
Sun, 21 Oct 2012 19:56:13 +0000 (19:56 +0000)
committerLang Hames <lhames@gmail.com>
Sun, 21 Oct 2012 19:56:13 +0000 (19:56 +0000)
the suggestions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166400 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticParseKinds.td
test/Parser/pragma-fp-contract.c

index e01cdb77e55c0686a1ae0ad95bf90c26ed603275..51270ab43806b0ab15fbc8159982cf5d3702da39 100644 (file)
@@ -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">; 
index 619053f465568d7d6e5cd9d6a9f6b470d37ef85d..fa2bb11d9c7d5691065237ad68bf8f1e4189608a 100644 (file)
@@ -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
 }