Added regression tests

llvm-svn: 295975
This commit is contained in:
Serge Pavlov 2017-02-23 14:34:04 +00:00
parent 38c0ab45f5
commit 6485a994db
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
// RUN: %clang_cc1 -S -triple i686-pc-linux-gnu -std=c++11 %s -o - | FileCheck %s
namespace pr8852 {
void foo();
struct S {
friend void foo() {}
};
void main() {
foo();
}
// CHECK: _ZN6pr88523fooEv:
}
namespace pr9518 {
template<typename T>
struct provide {
friend T f() { return T(); }
};
void g() {
void f();
provide<void> p;
f();
}
// CHECK: _ZN6pr95181fEv:
}