aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/weak/weak-16.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/weak/weak-16.c')
-rw-r--r--gcc/testsuite/gcc.dg/weak/weak-16.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/weak/weak-16.c b/gcc/testsuite/gcc.dg/weak/weak-16.c
index d557a6e..b1a08ea 100644
--- a/gcc/testsuite/gcc.dg/weak/weak-16.c
+++ b/gcc/testsuite/gcc.dg/weak/weak-16.c
@@ -5,6 +5,8 @@
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?kallsyms_token_index" } } */
/* { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?kallsyms_token_table" } } */
/* { dg-skip-if "" { x86_64-*-mingw* } { "*" } { "" } } */
+/* NVPTX's weak is applied to the definition, not declaration. */
+/* { dg-skip-if "" { nvptx-*-* } { "*" } { "" } } */
extern int kallsyms_token_index[] __attribute__((weak));
extern int kallsyms_token_table[] __attribute__((weak));