Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -faccess-control -verify %s |
Fariborz Jahanian | 4b12ed1 | 2009-07-29 20:41:46 +0000 | [diff] [blame] | 2 | |
| 3 | class M { |
| 4 | int iM; |
| 5 | }; |
| 6 | |
| 7 | class P { |
| 8 | int iP; |
| 9 | int PPR(); |
| 10 | }; |
| 11 | |
| 12 | class N : M,P { |
| 13 | N() {} |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 14 | // FIXME. No access violation is reported in method call or member access. |
Fariborz Jahanian | 4b12ed1 | 2009-07-29 20:41:46 +0000 | [diff] [blame] | 15 | int PR() { return iP + PPR(); } |
| 16 | }; |