diff mbox

[committed] Fix ubsan test

Message ID 20150305145858.GC26802@redhat.com
State New
Headers show

Commit Message

Marek Polacek March 5, 2015, 2:58 p.m. UTC
This test should be run rather than just compiled.

Bootstrapped/regtested on x86_64-linux, applying to trunk.

2015-03-05  Marek Polacek  <polacek@redhat.com>

	* c-c++-common/ubsan/bounds-6.c: Use dg-do run.


	Marek
diff mbox

Patch

diff --git gcc/testsuite/c-c++-common/ubsan/bounds-6.c gcc/testsuite/c-c++-common/ubsan/bounds-6.c
index e7d15d5..aef2055 100644
--- gcc/testsuite/c-c++-common/ubsan/bounds-6.c
+++ gcc/testsuite/c-c++-common/ubsan/bounds-6.c
@@ -1,4 +1,4 @@ 
-/* { dg-do compile } */
+/* { dg-do run } */
 /* { dg-options "-fsanitize=bounds -Wall -Wextra" } */
 
 /* Test off-by-one.  */