Skip to content

Commit 06aec44

Browse files
committed
Fix tests.
1 parent 7d2a6a7 commit 06aec44

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

source/slang/slang-check-decl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,7 @@ namespace Slang
20532053
if (parentDecl)
20542054
{
20552055
parentDecl->addTag(getVarTypeTags());
2056-
auto unsizedMask = (int)TypeTag::Unsized | (int)TypeTag::LinkTimeSized;
2056+
auto unsizedMask = (int)TypeTag::Unsized;
20572057
bool isUnknownSize = (((int)getVarTypeTags() & unsizedMask) != 0);
20582058
if (isUnknownSize)
20592059
{

tests/diagnostics/unsized.slang

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ extern static const int size = 1;
55
struct V
66
{
77
// CHECK-DAG: ([[# @LINE+1]]): error 30070
8+
int c[];
89
int b[size];
910
int a[];
1011
}

0 commit comments

Comments
 (0)