mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
12 lines
293 B
D
12 lines
293 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail_isZeroInit.d(11): Error: type expected as second argument of __traits `isZeroInit` instead of `a`
|
|
---
|
|
*/
|
|
void test()
|
|
{
|
|
int a = 3;
|
|
// Providing a specific variable rather than a type isn't allowed.
|
|
enum bool az = __traits(isZeroInit, a);
|
|
}
|