From b1a88d8dd624128c642702426dfa79937aaedcfb Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Thu, 10 Sep 2015 19:35:31 +0000 Subject: [PATCH] Move sel-address.mm from test/CodeGenCXX to test/SemaObjCXX, it's not a codegen test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247327 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenCXX/sel-address.mm | 14 -------------- test/SemaObjCXX/sel-address.mm | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 test/CodeGenCXX/sel-address.mm create mode 100644 test/SemaObjCXX/sel-address.mm diff --git a/test/CodeGenCXX/sel-address.mm b/test/CodeGenCXX/sel-address.mm deleted file mode 100644 index c3db9a7d00..0000000000 --- a/test/CodeGenCXX/sel-address.mm +++ /dev/null @@ -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); -} diff --git a/test/SemaObjCXX/sel-address.mm b/test/SemaObjCXX/sel-address.mm new file mode 100644 index 0000000000..931d793fd5 --- /dev/null +++ b/test/SemaObjCXX/sel-address.mm @@ -0,0 +1,14 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// 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); +} -- 2.40.0