Skip to content
Snippets Groups Projects
Commit 87234c83 authored by Lang Hames's avatar Lang Hames
Browse files

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
parent 6592c770
No related branches found
No related tags found
No related merge requests found
......@@ -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">;
......
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment