aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenHLSL/export.hlsl
blob: e72dbde5188a9f84ea8da07e99928f1534accc8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \
// RUN:   -emit-llvm -disable-llvm-passes -o - | FileCheck %s

// CHECK: define void @_Z2f1v() [[Attr:\#[0-9]+]]
export void f1() {
}

// CHECK: define void @_ZN11MyNamespace2f2Ev()
namespace MyNamespace {
  export void f2() {
  }
}

export {
// CHECK: define void @_Z2f3v()
// CHECK: define void @_Z2f4v()
    void f3() {}
    void f4() {}
}