[cfe-commits] r166400 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td test/Parser/pragma-fp-contract.c

Lang Hames lhames at gmail.com
Sun Oct 21 12:56:13 PDT 2012


Author: lhames
Date: Sun Oct 21 14:56:13 2012
New Revision: 166400

URL: http://llvm.org/viewvc/llvm-project?rev=166400&view=rev
Log:
Fix typo, make test case slightly more reabable. Thanks to Dmitri Gribenko for
the suggestions.

Modified:
    cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
    cfe/trunk/test/Parser/pragma-fp-contract.c

Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=166400&r1=166399&r2=166400&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Sun Oct 21 14:56:13 2012
@@ -729,7 +729,7 @@
   "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">; 

Modified: cfe/trunk/test/Parser/pragma-fp-contract.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/pragma-fp-contract.c?rev=166400&r1=166399&r2=166400&view=diff
==============================================================================
--- cfe/trunk/test/Parser/pragma-fp-contract.c (original)
+++ cfe/trunk/test/Parser/pragma-fp-contract.c Sun Oct 21 14:56:13 2012
@@ -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 at +1 {{'#pragma fp_contract' should only appear at file scope or at the start of a compound expression}} */
+#pragma STDC FP_CONTRACT ON
 }





More information about the cfe-commits mailing list