aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/expressions.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-10-12 02:19:57 +0000
committerJohn McCall <rjmccall@apple.com>2010-10-12 02:19:57 +0000
commit2bf6f49ffa839c966f692420491145adeac4f1e2 (patch)
treed54c45775cbcea5461dd074a23e7b3fb36b52060 /test/SemaCXX/expressions.cpp
parent12e9c6db87d58bfe23197e358864218624e27f41 (diff)
I just do what the comments tell me to do.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/expressions.cpp')
-rw-r--r--test/SemaCXX/expressions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/expressions.cpp b/test/SemaCXX/expressions.cpp
index b51194acd9..6bf59d1167 100644
--- a/test/SemaCXX/expressions.cpp
+++ b/test/SemaCXX/expressions.cpp
@@ -14,3 +14,10 @@ void f0() {
register int x;
f0_1(&x);
}
+
+template <class T> void bar(T &x) { T::fail(); }
+template <class T> void bar(volatile T &x) {}
+void f1() {
+ volatile int x;
+ bar(x = 5);
+}