1 // RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
\r
2 // RUN: dxil-pc-shadermodel6.3-library %s \
\r
3 // RUN: -emit-llvm -disable-llvm-passes -o - | FileCheck %s
\r
5 // FIXME: add semantic to a.
\r
6 // See https://github.com/llvm/llvm-project/issues/57874
\r
12 // Make sure sret parameter is generated.
\r
13 // CHECK:define internal void @"?ps_main@@YA?AUS@@XZ"(ptr noalias sret(%struct.S) align 4 %agg.result)
\r
14 // FIXME: change it to real value instead of poison value once semantic is add to a.
\r
15 // Make sure the function with sret is called.
\r
16 // CHECK:call void @"?ps_main@@YA?AUS@@XZ"(ptr poison)
\r