llvm-6502/test/C++Frontend/2003-08-20-EnumSizeProblem.cpp
Chris Lattner f9039d75fe new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7988 91177308-0d34-0410-b5e6-96231b3b80d8
2003-08-20 19:48:18 +00:00

22 lines
392 B
C++

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;
}