summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2012-01-20 01:26:23 +0000
committerEli Friedman <eli.friedman@gmail.com>2012-01-20 01:26:23 +0000
commit456f01833b6a6356b200a06c5b2ab81ba706d03b (patch)
tree75464c03c9ee48fc1fc92abd16b32a844bae6ea7 /clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp
parent6561d15dcb514fee576b41264eff91315f1799fb (diff)
downloadbcm5719-llvm-456f01833b6a6356b200a06c5b2ab81ba706d03b.tar.gz
bcm5719-llvm-456f01833b6a6356b200a06c5b2ab81ba706d03b.zip
Remove PotentiallyPotentiallyEvaluated, and replace it with a much simpler and less error-prone way of handling the relevant cases. Towards marking of whether a declaration is used more accurately.
llvm-svn: 148522
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp')
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp
index bc052e35b8b..59c8660aa18 100644
--- a/clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp
+++ b/clang/test/CXX/expr/expr.prim/expr.prim.general/p12-0x.cpp
@@ -27,3 +27,4 @@ namespace std {
class Poly { virtual ~Poly(); };
const std::type_info& k = typeid(S::m);
const std::type_info& m = typeid(*(Poly*)S::m); // expected-error {{invalid use of nonstatic data member}}
+const std::type_info& n = typeid(*(Poly*)(0*sizeof S::m)); \ No newline at end of file
OpenPOWER on IntegriCloud