xref: /llvm-project/clang/test/CodeGenSYCL/filescope_asm.c (revision 95c614afcd4de71d00a240d6a4a02c036c972ed0)
1 // RUN:  %clang_cc1 -fsycl-is-device -triple spir64 -emit-llvm %s -o - | FileCheck %s
2 //
3 // Check that file-scope asm is ignored during device-side SYCL compilation.
4 //
5 // CHECK-NOT: module asm "foo"
6 __asm__("foo");
7