blob: d5318a0277a98b4ca9523f6600757364015d0ff1 [file] [log] [blame]
John Kessenich9cc81de2018-07-02 10:40:32 -06001#define EMP1(a)
2#define EMP2(a, b)
3
4#define EXP1(a) = a
5#define EXP2(a, b) = a, b
6
7struct A
8{
9 float4 a EMP1({1,2,3,4}); // No PP arg errors
10 float4 b EMP2({({{(({1,2,3,4}))}})}, {{1,2,3,4}}); // No PP arg errors
11 float4 c EXP1({1,2,3,4}); // ERROR: No PP arg errors, but init error
12 float4 d EXP2({({{(({1,2,3,4}))}})}, {{1,2,3,4}}); // ERROR: No PP arg errors, but init error
13};
14
15void main()
16{
John Kessenich546b7882018-09-10 11:37:38 -060017 "a string"
John Kessenich9cc81de2018-07-02 10:40:32 -060018}