Mercurial > hg > CbC > CbC_llvm
annotate clang/test/CodeGenCXX/friend-redecl.cpp @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm %s -o - | FileCheck %s |
2 // PR8864 | |
3 | |
4 struct Foo { | |
5 friend bool TryFoo(Foo *f2) { return TryFoo(0, f2); } | |
6 | |
7 // CHECK: define{{.*}}Z6TryFooP3Foo | |
8 // CHECK-NOT: ret | |
9 // CHECK: call{{.*}}Z6TryFooiP3Foo | |
10 // CHECK: ret | |
11 | |
12 friend bool TryFoo(int, Foo *f3); | |
13 }; | |
14 bool TryFoo(Foo *f5); | |
15 int main(void) { | |
16 Foo f; | |
17 TryFoo(&f); | |
18 } |