Commit 6052140c by Marek Polacek Committed by Marek Polacek

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
parent b82f988e
2014-05-13 Marek Polacek <polacek@redhat.com>
* 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 <paolo.carlini@oracle.com>
PR c++/54310
......
/* 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)));
......@@ -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)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment