Tests: Add test for ways of calling no-argument macro with ().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user