]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add 'gcc.target/nvptx/alias-unsupported-1.c'
authorThomas Schwinge <tschwinge@baylibre.com>
Tue, 18 Mar 2025 15:14:42 +0000 (16:14 +0100)
committerThomas Schwinge <tschwinge@baylibre.com>
Fri, 21 Mar 2025 14:34:42 +0000 (15:34 +0100)
... testing for the GCC/nvptx "alias definitions not supported" error
diagnostic.

gcc/testsuite/
* gcc.target/nvptx/alias-unsupported-1.c: New.

gcc/testsuite/gcc.target/nvptx/alias-unsupported-1.c [new file with mode: 0644]

diff --git a/gcc/testsuite/gcc.target/nvptx/alias-unsupported-1.c b/gcc/testsuite/gcc.target/nvptx/alias-unsupported-1.c
new file mode 100644 (file)
index 0000000..47b30bd
--- /dev/null
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-additional-options -mno-alias } */
+
+void __f ()
+{
+}
+
+void f () __attribute__ ((alias ("__f")));
+/* { dg-error {alias definitions not supported} {} { target *-*-* } .-1 } */