summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/30052-try-catch-nl.cpp
blob: 410a735e8ce74cf5a550cc2154d5911a310de6fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
int foo()
{
	try
	{
		foo(bar);
	}
	catch (int *e)
	{
		return 0;
	}

	if (false)
		try
		{
			throw int();
		}
		catch(...)
		{
		}

	if (a) { return 1; } else { return 0; }
	return 1;
}