aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-07-29 20:41:46 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-07-29 20:41:46 +0000
commit96e2fa97ea929f69778c66dd42e426330d893e7a (patch)
tree05f2c975a0c0143e718c273fe57a3cc370dc80ae /test
parent59c04373c6a4fef5c6341a21ac847d4b3a25ee36 (diff)
Some refactoring of member access for
performace sake. Also added a test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaCXX/access-control-check.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/SemaCXX/access-control-check.cpp b/test/SemaCXX/access-control-check.cpp
new file mode 100644
index 0000000000..d2acfe4167
--- /dev/null
+++ b/test/SemaCXX/access-control-check.cpp
@@ -0,0 +1,16 @@
+// RUN: clang-cc -fsyntax-only -faccess-control -verify %s
+
+class M {
+ int iM;
+};
+
+class P {
+ int iP;
+ int PPR();
+};
+
+class N : M,P {
+ N() {}
+ // FIXME. No access violation is reported in method call or member access.
+ int PR() { return iP + PPR(); }
+};