r247327 - Move sel-address.mm from test/CodeGenCXX to test/SemaObjCXX, it's not a codegen test.
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 10 12:35:32 PDT 2015
Author: nico
Date: Thu Sep 10 14:35:31 2015
New Revision: 247327
URL: http://llvm.org/viewvc/llvm-project?rev=247327&view=rev
Log:
Move sel-address.mm from test/CodeGenCXX to test/SemaObjCXX, it's not a codegen test.
Added:
cfe/trunk/test/SemaObjCXX/sel-address.mm
- copied, changed from r247293, cfe/trunk/test/CodeGenCXX/sel-address.mm
Removed:
cfe/trunk/test/CodeGenCXX/sel-address.mm
Removed: cfe/trunk/test/CodeGenCXX/sel-address.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/sel-address.mm?rev=247326&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/sel-address.mm (original)
+++ cfe/trunk/test/CodeGenCXX/sel-address.mm (removed)
@@ -1,14 +0,0 @@
-// RUN: %clang_cc1 %s -verify -emit-llvm -o %t
-// pr7390
-
-void f(const SEL& v2) {}
-void g() {
- f(@selector(dealloc));
-
- SEL s = @selector(dealloc);
- SEL* ps = &s;
-
- @selector(dealloc) = s; // expected-error {{expression is not assignable}}
-
- SEL* ps2 = &@selector(dealloc);
-}
Copied: cfe/trunk/test/SemaObjCXX/sel-address.mm (from r247293, cfe/trunk/test/CodeGenCXX/sel-address.mm)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/sel-address.mm?p2=cfe/trunk/test/SemaObjCXX/sel-address.mm&p1=cfe/trunk/test/CodeGenCXX/sel-address.mm&r1=247293&r2=247327&rev=247327&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/sel-address.mm (original)
+++ cfe/trunk/test/SemaObjCXX/sel-address.mm Thu Sep 10 14:35:31 2015
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -verify -emit-llvm -o %t
+// RUN: %clang_cc1 -fsyntax-only -verify %s
// pr7390
void f(const SEL& v2) {}
@@ -6,9 +6,9 @@ void g() {
f(@selector(dealloc));
SEL s = @selector(dealloc);
- SEL* ps = &s;
+ SEL* ps = &s;
- @selector(dealloc) = s; // expected-error {{expression is not assignable}}
+ @selector(dealloc) = s; // expected-error {{expression is not assignable}}
- SEL* ps2 = &@selector(dealloc);
+ SEL* ps2 = &@selector(dealloc);
}
More information about the cfe-commits
mailing list