]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Adjust line spacing following r8645, so that .stderr output is
authorJulian Seward <jseward@acm.org>
Mon, 20 Oct 2008 11:29:51 +0000 (11:29 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 20 Oct 2008 11:29:51 +0000 (11:29 +0000)
as expected once again.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8682

exp-ptrcheck/tests/ccc.cpp

index 03c9a007361e3c3c9820335889e4084c906e2971..abd3119a7356549f74029d505929868080d0c9f3 100644 (file)
@@ -1,15 +1,10 @@
 #define _XOPEN_SOURCE 600 // to enable posix_memalign()
-
-
 #include <assert.h>
 #include <stdlib.h>
 #include <malloc.h> // 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);