brintos

brintos / llvm-project-archived public Read only

0
0
Text · 804 B · f8cad5b Raw
22 lines · plain
1// UNSUPPORTED: system-linux, system-windows2 3// Tests that we don't consult the the Objective-C runtime4// plugin when in a purely C++ context.5//6// RUN: %clangxx_host %p/Inputs/objc-cast.cpp -g -o %t7// RUN: %lldb %t \8// RUN:   -o "b main" -o run \9// RUN:   -o "expression --language objective-c -- NSString * a; a" \10// RUN:   -o "expression --language objective-c++ -- NSString * b; b" \11// RUN:   -o "expression NSString" \12// RUN:   2>&1 | FileCheck %s13 14// CHECK:      (lldb) expression --language objective-c -- NSString * a; a15// CHECK-NEXT: (NSString *){{.*}}= nil16 17// CHECK:      (lldb) expression --language objective-c++ -- NSString * b; b18// CHECK-NEXT: (NSString *){{.*}}= nil19 20// CHECK:      (lldb) expression NSString21// CHECK:      error:{{.*}}use of undeclared identifier 'NSString'22