aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2014-05-13 17:37:40 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2014-05-13 17:37:40 +0000
commit6052140cec44f7605a43a968af90797c36e47992 (patch)
tree8e0ba00b614e55ceb52f63410cbb841bde42ccb5
parentb82f988e8d21c709426d691329cf025e978d94ed (diff)
downloadgcc-6052140cec44f7605a43a968af90797c36e47992.zip
gcc-6052140cec44f7605a43a968af90797c36e47992.tar.gz
gcc-6052140cec44f7605a43a968af90797c36e47992.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/c-c++-common/pr50459-2.c7
-rw-r--r--gcc/testsuite/c-c++-common/pr50459.c2
3 files changed, 12 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 0ae3424..98a6505 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+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
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 0000000..0e8fec3
--- /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 f837b63..8d75228 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)));