(root)/
gcc-13.2.0/
gcc/
testsuite/
gdc.test/
fail_compilation/
fail38.d
/*
TEST_OUTPUT:
---
fail_compilation/fail38.d(12): Error: `super` is only allowed in non-static class member functions
---
*/

int x;

void test()
{
    super.x = 2;
}

int main()
{
    test();
    return 0;
}