[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Parser / pragma-fenv_access-ms.c
blobd179dfeb8780cc6fe5390dfebececeed7c90b022
1 // RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -fsyntax-only -verify %s
3 #pragma fenv_access (on)
4 #pragma fenv_access (off)
6 #pragma fenv_access // expected-warning{{missing '(' after '#pragma fenv_access'}}
7 #pragma fenv_access foo // expected-warning{{missing '(' after '#pragma fenv_access'}}
8 #pragma fenv_access on // expected-warning{{missing '(' after '#pragma fenv_access'}}
9 #pragma fenv_access ( // expected-warning{{incorrect use of '#pragma fenv_access}}
10 #pragma fenv_access (on // expected-warning{{missing ')' after '#pragma fenv_access'}}
11 #pragma fenv_access (on) foo // expected-warning{{extra tokens at end of '#pragma fenv_access'}}
13 void f() {
14 (void)0;
15 #pragma fenv_access (on) // expected-error{{'#pragma fenv_access' can only appear at file scope or at the start of a compound statement}}