Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -ast-print %s | FileCheck %s |
Douglas Gregor | bd4c4ae | 2009-08-26 22:36:53 +0000 | [diff] [blame] | 2 | |
3 | // CHECK: test12_A::foo() | ||||
4 | struct test12_A { | ||||
5 | virtual void foo(); | ||||
6 | |||||
7 | void bar() { | ||||
8 | test12_A::foo(); | ||||
9 | } | ||||
10 | }; | ||||
11 | |||||
12 | // CHECK: xp->test24_B::wibble() | ||||
13 | struct test24_B { | ||||
14 | virtual void wibble(); | ||||
15 | }; | ||||
16 | |||||
17 | void foo(test24_B *xp) { | ||||
18 | xp->test24_B::wibble(); | ||||
19 | } |