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
[libc++] Add __iswctype to the locale base API since it's required by <locale> (...
[llvm-project.git]
/
lldb
/
test
/
Shell
/
Recognizer
/
Inputs
/
verbose_trap-in-stl-nested.cpp
blob
67fa65c9ceae22b57f1e74c5af45a6c0805d8bbd
1
namespace
std
{
2
namespace
detail
{
3
void
function_that_aborts
() {
__builtin_verbose_trap
(
"Bounds error"
,
"out-of-bounds access"
); }
4
}
// namespace detail
5
6
inline
namespace
__1
{
7
template
<
typename T
>
struct
vector
{
8
void
operator
[](
unsigned
) {
detail
::
function_that_aborts
(); }
9
};
10
}
// namespace __1
11
}
// namespace std
12
13
void
g
() {
14
std
::
vector
<
int
>
v
;
15
v
[
10
];
16
}
17
18
int
main
() {
19
g
();
20
return
0
;
21
}