[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git] / clang / test / SemaObjC / forward-class-receiver.m
blob9bcb03961dc0ab185b36303633892c08de55ff01
1 // RUN: %clang_cc1  -fsyntax-only -verify %s
3 @interface I
4 + new; // expected-note {{method 'new' is used for the forward class}}
5 @end
6 Class isa;
8 @class NotKnown; // expected-note{{forward declaration of class here}}
10 void foo(NotKnown *n) {
11   [isa new];
12   [NotKnown new];          /* expected-warning {{receiver 'NotKnown' is a forward class and corresponding}} */