Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGenCXX/block.cpp @ 206:f17a3b42b08b
Added tag before-12 for changeset b7591485f4cd
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 07 Jun 2021 21:25:57 +0900 (2021-06-07) |
parents | 1d019706d866 |
children |
line wrap: on
line source
// RUN: %clang_cc1 %s -triple %itanium_abi_triple -emit-llvm -o - -fblocks // RUN: %clang_cc1 %s -triple %ms_abi_triple -fno-rtti -emit-llvm -o - -fblocks // Just test that this doesn't crash the compiler... void func(void*); struct Test { virtual void use() { func((void*)this); } Test(Test&c) { func((void*)this); } Test() { func((void*)this); } }; void useBlock(void (^)(void)); int main (void) { __block Test t; useBlock(^(void) { t.use(); }); }