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 | } |
14 |