Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail_isZeroInit.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail_isZeroInit.d(11): Error: type expected as second argument of __traits `isZeroInit` instead of `a`
5 ---
6 */
7 void test()
8 {
9 int a = 3;
10 // Providing a specific variable rather than a type isn't allowed.
11 enum bool az = __traits(isZeroInit, a);
12 }