mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
new testcase
llvm-svn: 7988
This commit is contained in:
parent
e012dc065a
commit
efbb117a4a
21
test/Regression/C++Frontend/2003-08-20-EnumSizeProblem.cpp
Normal file
21
test/Regression/C++Frontend/2003-08-20-EnumSizeProblem.cpp
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
_URC_NO_REASON = 0,
|
||||||
|
_URC_FOREIGN_EXCEPTION_CAUGHT = 1,
|
||||||
|
_URC_FATAL_PHASE2_ERROR = 2,
|
||||||
|
_URC_FATAL_PHASE1_ERROR = 3,
|
||||||
|
_URC_NORMAL_STOP = 4,
|
||||||
|
_URC_END_OF_STACK = 5,
|
||||||
|
_URC_HANDLER_FOUND = 6,
|
||||||
|
_URC_INSTALL_CONTEXT = 7,
|
||||||
|
_URC_CONTINUE_UNWIND = 8
|
||||||
|
} _Unwind_Reason_Code;
|
||||||
|
|
||||||
|
int foo( _Unwind_Reason_Code X) {
|
||||||
|
return X;
|
||||||
|
}
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
foo(_URC_END_OF_STACK);
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user