Debian Codegraph @

clang/test/CodeGenHLSL/export.hlsl

raw
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]+]]
5 export void f1() {
6 }
7
8 // CHECK: define void @_ZN11MyNamespace2f2Ev()
9 namespace MyNamespace {
10 export void f2() {
11 }
12 }
13
14 export {
15 // CHECK: define void @_Z2f3v()
16 // CHECK: define void @_Z2f4v()
17 void f3() {}
18 void f4() {}
19 }