Tests: Add test for ways of calling no-argument macro with ().

This commit is contained in:
John Kessenich
2018-11-06 14:51:27 -07:00
parent 1c1c2d643a
commit 8b782e77df
2 changed files with 60 additions and 0 deletions

View File

@@ -28,3 +28,33 @@ int main(){
1.2 2E10 5u - 5l f
}
struct S {
int member1;
float member2;
vec4 member3;
};
void foo()
{
S s;
s . member2 + s . member1;
s . member3 . zyx;
s . member2 . xxyz;
s . member2 . yyz;
s . member2 . xxyz();
s . member2 . yzy;
vec3 a = vec3(0);vec3 b = a . zxyz;vec3 b = a . xxyz;vec3 b = a . yyz;vec3 b = a . xxyz();vec3 b = a .;vec3 b = a . z;
}