We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a311992 commit 7f24d4cCopy full SHA for 7f24d4c
clang/test/SemaHLSL/Types/Traits/IsLineVectorLayoutCompatibleTypeErros.hlsl
@@ -1,10 +1,10 @@
1
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-library -finclude-default-header -fnative-half-type -verify %s
2
3
+// types must be complete
4
+_Static_assert(__builtin_hlsl_is_line_vector_layout_compatible(__hlsl_resource_t), "");
5
+
6
// expected-note@+1{{forward declaration of 'notComplete'}}
7
struct notComplete;
8
// expected-error@+1{{incomplete type 'notComplete' where a complete type is required}}
9
_Static_assert(!__builtin_hlsl_is_line_vector_layout_compatible(notComplete), "");
10
-
-// types must be complete
-_Static_assert(__builtin_hlsl_is_line_vector_layout_compatible(__hlsl_resource_t), "");
0 commit comments