From abe15e553e58165e7692c0d0842865c488ed7b45 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Fri, 1 Jan 2010 10:34:51 +0000 Subject: Updaet clang to 92395. --- test/CodeGenCXX/try-catch.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/CodeGenCXX/try-catch.cpp (limited to 'test/CodeGenCXX/try-catch.cpp') diff --git a/test/CodeGenCXX/try-catch.cpp b/test/CodeGenCXX/try-catch.cpp new file mode 100644 index 000000000000..2b5f3232d1fb --- /dev/null +++ b/test/CodeGenCXX/try-catch.cpp @@ -0,0 +1,13 @@ +// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fexceptions | FileCheck %s + +struct X { }; + +const X g(); + +void f() { + try { + throw g(); + // CHECK: @_ZTI1X to i8 + } catch (const X x) { + } +} -- cgit v1.3