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
[X86] Use NSW/NUW flags on ISD::TRUNCATE nodes to improve X86 PACKSS/PACKUS lowering...
[llvm-project.git]
/
lldb
/
test
/
API
/
functionalities
/
postmortem
/
wow64_minidump
/
fizzbuzz.cpp
blob
295d4a1f24db2fa95c7fb43e0bd4605c5fa4c01a
1
// A sample program for getting minidumps on Windows.
2
3
#include <iostream>
4
5
bool
6
fizz
(
int
x
)
7
{
8
return
x
%
3
==
0
;
9
}
10
11
bool
12
buzz
(
int
x
)
13
{
14
return
x
%
5
==
0
;
15
}
16
17
int
18
main
()
19
{
20
int
*
buggy
=
0
;
21
22
for
(
int
i
=
1
;
i
<=
100
; ++
i
)
23
{
24
if
(
fizz
(
i
))
std
::
cout
<<
"fizz"
;
25
if
(
buzz
(
i
))
std
::
cout
<<
"buzz"
;
26
if
(!
fizz
(
i
) && !
buzz
(
i
))
std
::
cout
<<
i
;
27
std
::
cout
<<
'
\n
'
;
28
}
29
30
return
*
buggy
;
31
}