Skip to content
Snippets Groups Projects
Commit 2267d254 authored by Thomas Schwinge's avatar Thomas Schwinge
Browse files

Add 'gcc.target/nvptx/alias-weak-1.c'

... testing for the GCC/nvptx "weak alias definitions not supported" error
diagnostic (limitation of PTX).

	gcc/testsuite/
	* gcc.target/nvptx/alias-weak-1.c: New.
parent da3a2985
No related branches found
No related tags found
No related merge requests found
/* { dg-do compile } */
/* { dg-add-options ptx_alias } */
void __f ()
{
}
void f () __attribute__ ((weak, alias ("__f")));
/* { dg-error {weak alias definitions not supported} {} { target *-*-* } .-1 }
(limitation of PTX). */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment