From: Lang Hames Date: Sun, 21 Oct 2012 19:56:13 +0000 (+0000) Subject: Fix typo, make test case slightly more reabable. Thanks to Dmitri Gribenko for X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87234c83831dfb18247135add2bf14198604b3b4;p=clang 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 --- 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 }