From ecf16265407c4d0edb860dc8259a6874d1a19f6e Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 16 Nov 2012 22:31:39 +0000 Subject: [driver] Add the missing TY_PP_ObjCXX_Alias case to the isCXX function. This was causing different behavior when using -x objective-c++-cpp-output as compared to -x objc++-cpp-output. Specifically, the driver was not adding the -fcxx-exceptions flag in the latter case. rdar://12680312 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168212 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/objc++-cpp-output.mm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/Driver/objc++-cpp-output.mm') diff --git a/test/Driver/objc++-cpp-output.mm b/test/Driver/objc++-cpp-output.mm index 9c4d55379a..63b15d8c18 100644 --- a/test/Driver/objc++-cpp-output.mm +++ b/test/Driver/objc++-cpp-output.mm @@ -1,4 +1,5 @@ // RUN: %clang -x objc++-cpp-output -c %s -o /dev/null +// RUN: %clang -x objc++-cpp-output -c %s -o /dev/null -### 2>&1 | FileCheck %s // PR13820 // REQUIRES: LP64 @@ -9,3 +10,8 @@ @end void f() {} class C {}; + +// Make sure the driver is passing all the necessary exception flags. +// CHECK: "-fobjc-exceptions" +// CHECK: "-fcxx-exceptions" +// CHECK: "-fexceptions" -- cgit v1.2.3-18-g5258