1// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \ 2// RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s 3 4// CHECK: define void @_Z2f1v() [[Attr:\#[0-9]+]] 5export void f1() { 6} 7 8// CHECK: define void @_ZN11MyNamespace2f2Ev() [[Attr]] 9namespace MyNamespace { 10 export void f2() { 11 } 12} 13 14export { 15// CHECK: define void @_Z2f3v() [[Attr]] 16// CHECK: define void @_Z2f4v() [[Attr]] 17 void f3() {} 18 void f4() {} 19} 20 21// CHECK: attributes [[Attr]] = { {{.*}} "hlsl.export" {{.*}} } 22