llvm-project
16 строк · 827.0 Байт
1// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -fsyntax-only -verify %s
2
3#pragma fenv_access (on)4#pragma fenv_access (off)5
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'}}12
13void 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}}16}
17