[cfe-commits] r117841 - in /cfe/trunk/test/SemaCXX: ptrtomember-badcall.cpp ptrtomember.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Sat Oct 30 12:52:19 PDT 2010
Author: akirtzidis
Date: Sat Oct 30 14:52:19 2010
New Revision: 117841
URL: http://llvm.org/viewvc/llvm-project?rev=117841&view=rev
Log:
renamed: test/SemaCXX/ptrtomember-badcall.cpp -> test/SemaCXX/ptrtomember.cpp
Added:
cfe/trunk/test/SemaCXX/ptrtomember.cpp
- copied, changed from r117829, cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp
Removed:
cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp
Removed: cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp?rev=117840&view=auto
==============================================================================
--- cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp (original)
+++ cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp (removed)
@@ -1,13 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
-
-struct S {
- int i;
-
- int mem(int);
-};
-
-int foo(int S::* ps, S *s)
-{
- return (s->*ps)(1); // expected-error {{called object type 'int' is not a function or function pointer}}
-}
-
Copied: cfe/trunk/test/SemaCXX/ptrtomember.cpp (from r117829, cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/ptrtomember.cpp?p2=cfe/trunk/test/SemaCXX/ptrtomember.cpp&p1=cfe/trunk/test/SemaCXX/ptrtomember-badcall.cpp&r1=117829&r2=117841&rev=117841&view=diff
==============================================================================
(empty)
More information about the cfe-commits
mailing list