-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into cheneym2/linktimeconstanttestspirv
- Loading branch information
Showing
6 changed files
with
89 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK): | ||
|
||
struct DefaultStruct_base | ||
{ | ||
int data0; | ||
__init() | ||
{ | ||
data0 = 2; | ||
} | ||
}; | ||
|
||
struct DefaultStruct1 : DefaultStruct_base | ||
{ | ||
int data1 = 1; | ||
}; | ||
|
||
struct DefaultStruct2 : DefaultStruct_base | ||
{ | ||
|
||
}; | ||
|
||
[numthreads(1, 1, 1)] | ||
void computeMain(uint3 dispatchThreadID: SV_DispatchThreadID) | ||
{ | ||
//CHECK: error 30504: cannot use initializer list for type 'DefaultStruct1' | ||
DefaultStruct1 s1 = {}; | ||
|
||
//CHECK: error 30504: cannot use initializer list for type 'DefaultStruct1' | ||
DefaultStruct1 s2 = {1}; | ||
|
||
//CHECK: error 30504: cannot use initializer list for type 'DefaultStruct1' | ||
DefaultStruct1 s3 = {1, 2}; | ||
|
||
//CHECK: error 30504: cannot use initializer list for type 'DefaultStruct2' | ||
DefaultStruct2 s4 = {}; | ||
|
||
//CHECK: error 30504: cannot use initializer list for type 'DefaultStruct2' | ||
DefaultStruct2 s5 = {1}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters