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
[llvm][NFC] Rework Timer.cpp globals to ensure valid lifetimes (#121663)
[llvm-project.git]
/
lldb
/
test
/
Shell
/
Recognizer
/
Inputs
/
verbose_trap-in-stl.cpp
blob
20db722ef105da660fb75afb30ef631cfa3484f7
1
namespace
std
{
2
inline
namespace
__1
{
3
template
<
typename T
>
struct
vector
{
4
T
&
operator
[](
unsigned
) {
__builtin_verbose_trap
(
"Bounds error"
,
"out-of-bounds access"
); }
5
};
6
}
// namespace __1
7
}
// namespace std
8
9
void
g
() {
10
std
::
vector
<
int
>
v
;
11
v
[
10
];
12
}
13
14
int
main
() {
15
g
();
16
return
0
;
17
}