repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[InstCombine] Preserve NSW flags for `lshr (mul nuw X, C1), C2 -> mul nuw nsw X,...
[llvm-project.git]
/
clang
/
test
/
SemaObjC
/
invalid-receiver.m
blob
1742993e4dcb0eb7dcd49a8b43b01395efa37cfc
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
typedef struct NotAClass {
4
int a, b;
5
} NotAClass;
6
7
void foo(void) {
8
[NotAClass nonexistent_method]; // expected-error {{receiver type 'NotAClass' (aka 'struct NotAClass') is not an Objective-C class}}
9
}