From efbb117a4ad7deec11beeed7031f9effe11f0f3c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 20 Aug 2003 19:48:18 +0000 Subject: [PATCH] new testcase llvm-svn: 7988 --- .../2003-08-20-EnumSizeProblem.cpp | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/Regression/C++Frontend/2003-08-20-EnumSizeProblem.cpp 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; +}