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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Modules
/
class-extension-protocol.m
blob
752e4e129d29c6e127aece6b27768b681bb5c0d8
1
// RUN: rm -rf %t.cache
2
// RUN: %clang_cc1 %s -fsyntax-only -fmodules -fimplicit-module-maps -fmodules-cache-path=%t.cache -I%S/Inputs/class-extension -verify
3
// expected-no-diagnostics
4
5
#import "a-private.h"
6
7
int foo(A *X) {
8
return X.p0 + X.p1;
9
}