blob: e85d91d2f58d5ef914d21571531cb1d45aa588ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//TEST:EXECUTABLE:
[RequirePrelude(cpp, "const int PRELUDE = 2; struct Foo{};")]
[RequirePrelude(glsl, "INVALID_PRELUDE")]
__target_intrinsic(cpp, "Foo")
struct Foo
{
int test()
{
__intrinsic_asm "(PRELUDE)";
}
}
export __extern_cpp int main()
{
Foo f;
printf("%d\n", f.test());
return 0;
}
|