Skip to content

Commit 7f24d4c

Browse files
committed
fix bug
1 parent a311992 commit 7f24d4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-library -finclude-default-header -fnative-half-type -verify %s
22

3+
// types must be complete
4+
_Static_assert(__builtin_hlsl_is_line_vector_layout_compatible(__hlsl_resource_t), "");
5+
36
// expected-note@+1{{forward declaration of 'notComplete'}}
47
struct notComplete;
58
// expected-error@+1{{incomplete type 'notComplete' where a complete type is required}}
69
_Static_assert(!__builtin_hlsl_is_line_vector_layout_compatible(notComplete), "");
710

8-
9-
// types must be complete
10-
_Static_assert(__builtin_hlsl_is_line_vector_layout_compatible(__hlsl_resource_t), "");

0 commit comments

Comments
 (0)