blob: e1cc4cf04d2854aa6dd08f446b4dae3abe13c494 [file] [log] [blame]
/* REQUIRED_ARGS: -betterC
* TEST_OUTPUT:
---
fail_compilation/betterc.d(12): Error: Cannot use `throw` statements with -betterC
fail_compilation/betterc.d(17): Error: Cannot use try-catch statements with -betterC
fail_compilation/betterc.d(29): Error: `TypeInfo` cannot be used with -betterC
---
*/
void test()
{
throw new Exception("msg");
}
void test2()
{
try
{
test();
}
catch (Exception e)
{
}
}
void test3()
{
int i;
auto ti = typeid(i);
}