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
[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git]
/
clang
/
test
/
Parser
/
cxx-typeid.cpp
blob
e726665a36d05a6db377e584309b9793442bba77
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3
// FIXME: This should really include <typeinfo>, but we don't have that yet.
4
namespace
std
{
5
class
type_info
;
6
}
7
8
void
f
()
9
{
10
(
void
)
typeid
(
int
);
11
(
void
)
typeid
(
0
);
12
(
void
)
typeid
1
;
// expected-error {{expected '(' after 'typeid'}}
13
}