From: Thomas Schwinge Date: Tue, 18 Mar 2025 15:14:42 +0000 (+0100) Subject: Add 'gcc.target/nvptx/alias-unsupported-1.c' X-Git-Tag: basepoints/gcc-16~909 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d3a48baac33e9ccd6ea02012078fefd48181af3;p=thirdparty%2Fgcc.git Add 'gcc.target/nvptx/alias-unsupported-1.c' ... testing for the GCC/nvptx "alias definitions not supported" error diagnostic. gcc/testsuite/ * gcc.target/nvptx/alias-unsupported-1.c: New. --- 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 index 00000000000..47b30bd928b --- /dev/null +++ b/gcc/testsuite/gcc.target/nvptx/alias-unsupported-1.c @@ -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 } */