repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Sema
/
cxx-as-c.c
blob
a5d1a4944c95630727adc8e69d079e900e976200
1
// RUN: %clang_cc1 %s -verify
2
3
// PR36157
4
struct
Foo
{
5
Foo
(
int
n
) :
n_
(
n
) {}
// expected-error 1+{{}}
6
private
:
7
int
n
;
8
};
9
int
main
() {
Foo f
; }
// expected-error 1+{{}}