brintos

brintos / llvm-project-archived public Read only

0
0
Text · 437 B · 144e4a2 Raw
9 lines · c
1// RUN: %clang_cc1 -triple mipsel-unknown-linux -fsyntax-only %s -verify=expected,unsupported2// RUN: %clang_cc1 -triple x86_64-gnu-linux -fsyntax-only %s -verify3struct S {int a;};4void test_builtin_set_flt_rounds() {5  __builtin_set_flt_rounds(1); // unsupported-error {{builtin is not supported on this target}}6  struct S s;7  __builtin_set_flt_rounds(s); // expected-error {{passing 'struct S' to parameter of incompatible type}}8}9