Sign in
flutter
/
third_party
/
glslang
/
refs/heads/flutter-ce138e
/
.
/
Test
/
struct_parameter_after_non_struct.frag
blob: 3ed342b043c2345efd6ccdab6abef9aa0ec2af20 [
file
] [
edit
]
#version 400
struct
B
{
int
a
;
};
// Test struct parameter after non-struct parameter (minimal regression test).
void
test1
(
B b
,
int
c
)
{}
// works.
void
test2
(
int
c
,
B b
)
{}
// should work.
void
main
()
{
B b
=
B
(
42
);
test1
(
b
,
10
);
test2
(
10
,
b
);
}