[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / SemaObjC / debugger-cast-result-to-id.m
blob4be8039c9f9793b2a8704f3c1b20c7686d2dd799
1 // RUN: %clang_cc1 -funknown-anytype -fsyntax-only -fdebugger-support -fdebugger-cast-result-to-id -verify %s
3 extern __unknown_anytype test0;
4 extern __unknown_anytype test1(void);
6 void test_unknown_anytype_receiver(void) {
7   (void)(int)[[test0 unknownMethod] otherUnknownMethod];;
8   (void)(id)[[test1() unknownMethod] otherUnknownMethod];
9   id x = test0;
10   id y = test1();
13 @class NSString; // expected-note {{forward declaration of class here}}
15 void rdar10988847(void) {
16   id s = [NSString stringWithUTF8String:"foo"]; // expected-warning {{receiver 'NSString' is a forward class and corresponding @interface may not exist}}