[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Parser / pragma-fenv_round.c
blobb2f6f7ed41a4a325baf6c7310eb8191056009d72
1 // RUN: %clang_cc1 -fexperimental-strict-floating-point -fsyntax-only -Wignored-pragmas -verify %s
3 #pragma STDC FENV_ROUND ON // expected-warning {{invalid or unsupported rounding mode}}
5 float func_01(int x, float y) {
6 if (x)
7 return y + 2;
8 #pragma STDC FENV_ROUND FE_DOWNWARD // expected-error{{'#pragma STDC FENV_ROUND' can only appear at file scope or at the start of a compound statement}}
9 // expected-warning@-1{{pragma STDC FENV_ROUND is not supported}}
10 return x + y;