From: Marek Polacek Date: Tue, 13 May 2014 17:37:40 +0000 (+0000) Subject: pr50459.c: Move cdtor tests to a separate testcase. X-Git-Tag: releases/gcc-5.1.0~7605 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6052140cec44f7605a43a968af90797c36e47992;p=thirdparty%2Fgcc.git pr50459.c: Move cdtor tests to a separate testcase. * c-c++-common/pr50459.c: Move cdtor tests to a separate testcase. * c-c++-common/pr50459-2.c: New test. From-SVN: r210390 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0ae3424aeb81..98a6505c3ef6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-05-13 Marek Polacek + + * c-c++-common/pr50459.c: Move cdtor tests to a separate testcase. + * c-c++-common/pr50459-2.c: New test. + 2014-05-13 Paolo Carlini PR c++/54310 diff --git a/gcc/testsuite/c-c++-common/pr50459-2.c b/gcc/testsuite/c-c++-common/pr50459-2.c new file mode 100644 index 000000000000..0e8fec3e2e54 --- /dev/null +++ b/gcc/testsuite/c-c++-common/pr50459-2.c @@ -0,0 +1,7 @@ +/* PR c/50459 */ +/* { dg-do compile { target init_priority } } */ +/* { dg-options "-Wall -Wextra" } */ + +enum { A = 128, B = 1 }; +void fn3 (void) __attribute__((constructor (A))); +void fn4 (void) __attribute__((destructor (A))); diff --git a/gcc/testsuite/c-c++-common/pr50459.c b/gcc/testsuite/c-c++-common/pr50459.c index f837b63bfc40..8d75228bbcf4 100644 --- a/gcc/testsuite/c-c++-common/pr50459.c +++ b/gcc/testsuite/c-c++-common/pr50459.c @@ -5,8 +5,6 @@ enum { A = 128, B = 1 }; void *fn1 (void) __attribute__((assume_aligned (A))); void *fn2 (void) __attribute__((assume_aligned (A, 4))); -void fn3 (void) __attribute__((constructor (A))); -void fn4 (void) __attribute__((destructor (A))); void *fn5 (int) __attribute__((alloc_size (B))); void *fn6 (int) __attribute__((alloc_align (B))); void fn7 (const char *, ...) __attribute__ ((sentinel (B)));