repo.or.cz
/
clang
/
acc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add LLVM runtime checks to build path
[clang/acc.git]
/
test
/
SemaCXX
/
typeid.cpp
blob
f9ad7592187c0d8af21d8fc3ce0d0c69324c5cc1
1
// RUN: clang-cc -fsyntax-only -verify %s
2
3
void
f
()
4
{
5
(
void
)
typeid
(
int
);
// expected-error {{error: you need to include <typeinfo> before using the 'typeid' operator}}
6
}
7
8
// FIXME: This should really include <typeinfo>, but we don't have that yet.
9
namespace
std
{
10
class
type_info
;
11
}
12
13
void
g
()
14
{
15
(
void
)
typeid
(
int
);
16
}