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
/
SemaCXX
/
typeof.cpp
blob
421cfc59f53117ee6d38da607a65c823062a8095
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
typeof_unqual
(
int
)
u
=
12
;
// expected-error {{expected function body after function declarator}}
4
__typeof_unqual
(
int
)
_u
=
12
;
5
__typeof_unqual__
(
int
)
__u
=
12
;
6
7
namespace
GH97646
{
8
template
<
bool
B
>
9
void
f
() {
10
__typeof__
(
B
)
x
=
false
;
11
!
x
;
12
}
13
}