]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenCXX/member-call-parens.cpp
Vendor import of clang 3.9.0 release r280324:
[FreeBSD/FreeBSD.git] / test / CodeGenCXX / member-call-parens.cpp
1 // RUN: %clang_cc1 -emit-llvm-only -verify %s
2 // expected-no-diagnostics
3
4 struct A { int a(); };
5 typedef int B;
6 void a() {
7   A x;
8   ((x.a))();
9   ((x.*&A::a))();
10   B y;
11   // FIXME: Sema doesn't like this for some reason...
12   //(y.~B)();
13 }