From: Julian Seward Date: Mon, 20 Oct 2008 11:29:51 +0000 (+0000) Subject: Adjust line spacing following r8645, so that .stderr output is X-Git-Tag: svn/VALGRIND_3_4_0~212 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe266da2536161a1511148384e3dfb4ad04b58de;p=thirdparty%2Fvalgrind.git Adjust line spacing following r8645, so that .stderr output is as expected once again. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8682 --- diff --git a/exp-ptrcheck/tests/ccc.cpp b/exp-ptrcheck/tests/ccc.cpp index 03c9a00736..abd3119a73 100644 --- a/exp-ptrcheck/tests/ccc.cpp +++ b/exp-ptrcheck/tests/ccc.cpp @@ -1,15 +1,10 @@ #define _XOPEN_SOURCE 600 // to enable posix_memalign() - - #include #include #include // for memalign() - - static __attribute__((noinline)) void bar ( int ); /* fwds */ -int main(void) -{ - int y1, y2, y3, y4, y5, y6, sum = 0; +int main(void) { + int sum = 0; int* x1 = (int*)malloc(sizeof(int)); int* x2 = new int; int* x3 = new int[10]; @@ -17,9 +12,9 @@ int main(void) int* x5 = (int*)memalign(8, sizeof(int)); int* x6; void* v6; int res = posix_memalign(&v6, 8, sizeof(int)); x6 = (int*)v6; - assert(NULL != x1 && NULL != x2 && NULL != x3 && NULL != x4 && NULL != x5 && 0 == res); + __asm__ __volatile__("":::"memory"); // all underruns sum += x1[-1]; __asm__ __volatile__("":::"memory"); bar(1);