blob: 9cdab0a6624befdac47ed746d830fa56892ec91f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// RUN: clang-cc -emit-llvm %s -o %t &&
struct C {
void f();
void g(int, ...);
};
// RUN: grep "define void @_ZN1C1fEv" %t | count 1 &&
void C::f() {
}
void f() {
C c;
// RUN: grep "call void @_ZN1C1fEv" %t | count 1 &&
c.f();
// RUN: grep "call void (.struct.C\*, i32, ...)\* @_ZN1C1gEiz" %t | count 1
c.g(1, 2, 3);
}
|