diff --git a/test/Regression/C++Frontend/2003-08-20-EnumSizeProblem.cpp b/test/Regression/C++Frontend/2003-08-20-EnumSizeProblem.cpp new file mode 100644 index 00000000000..19d2d6ade3e --- /dev/null +++ b/test/Regression/C++Frontend/2003-08-20-EnumSizeProblem.cpp @@ -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; +}