brintos

brintos / llvm-project-archived public Read only

0
0
Text · 534 B · a016985 Raw
15 lines · cpp
1// RUN: %clang_cc1 -fsycl-is-host -fsyntax-only -verify %s2// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s3 4// FIXME-expected-error@+1{{'clang::sycl_external' attribute takes no arguments}}5[[clang::sycl_external()]] void bad1();6 7// expected-error@+1{{expected expression}}8[[clang::sycl_external(,)]] void bad2();9 10// expected-error@+1{{'clang::sycl_external' attribute takes no arguments}}11[[clang::sycl_external(3)]] void bad3();12 13// expected-error@+1{{expected expression}}14[[clang::sycl_external(4,)]] void bad4();15