Refine pr23299 exception test.

Several functions with non-void return type do not have
return statement.  This will result in undefined behavior in
C++.  In C++, the undefined behavior will raised before the
end of the function.  Clang 3.2 or newer version will emit
an unreachable instruction in this case, which will result
in SEGV.

Change-Id: I3064b04bb68b42caf2dde807a10047ef6b5a1d46
2 files changed