summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/safestack/overflow.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/safestack/overflow.c')
-rw-r--r--compiler-rt/test/safestack/overflow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/test/safestack/overflow.c b/compiler-rt/test/safestack/overflow.c
index 27436947e49..62f86536916 100644
--- a/compiler-rt/test/safestack/overflow.c
+++ b/compiler-rt/test/safestack/overflow.c
@@ -17,9 +17,13 @@ void fct(volatile int *buffer)
int main(int argc, char **argv)
{
+ int prebuf[7];
int value1 = 42;
int buffer[5];
int value2 = 42;
+ int postbuf[7];
+ fct(prebuf + 1);
+ fct(postbuf + 1);
fct(buffer);
return value1 != 42 || value2 != 42;
}
OpenPOWER on IntegriCloud