brintos

brintos / llvm-project-archived public Read only

0
0
Text · 333 B · db27292 Raw
23 lines · plain
1// RUN: %clang_cc1 -triple x86_64-unknow-windows-msvc -emit-llvm -fobjc-runtime=gnustep-2.0 -o - %s 2 3// Regression test.  Ensure that C++ arguments with non-trivial destructors4// don't crash the compiler.5 6struct X7{8  int a;9  ~X();10};11 12@protocol Y13- (void)foo: (X)bar;14@end15 16 17void test(id<Y> obj)18{19  X a{12};20  [obj foo: a];21}22 23