blob: 6f4fb036b7f076d5629844a9b16ad9ecd0b45ff7 [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);
}