Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Parser / pragma-fenv_access-ms.c
blobb00c82dd6a4bdede645441c030494f868e2c4e6a
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(void) {
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}}