☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail38.d
☽
☼
gcc/testsuite/gdc.test/fail_compilation/fail38.d
code
plain
raw
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail38.d(12): Error: `super` is only allowed in non-static class member functions
5
---
6
*/
7
8
int x;
9
10
void test()
11
{
12
super.x = 2;
13
}
14
15
int main()
16
{
17
test();
18
return 0;
19
}