annotate clang/test/Sema/pr25786.c @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -DTEST -fsyntax-only -verify %s
anatofuz
parents:
diff changeset
2 // RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fsyntax-only -verify %s
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 #if TEST
anatofuz
parents:
diff changeset
5 void (__attribute__((regparm(3), stdcall)) *pf) (); //expected-warning {{'stdcall' calling convention is not supported for this target}}
anatofuz
parents:
diff changeset
6 void (__attribute__((regparm(2), stdcall)) foo)(int a) { //expected-warning {{'stdcall' calling convention is not supported for this target}}
anatofuz
parents:
diff changeset
7 }
anatofuz
parents:
diff changeset
8 #else
anatofuz
parents:
diff changeset
9 //expected-no-diagnostics
anatofuz
parents:
diff changeset
10 void (__attribute__((regparm(3), stdcall)) *pf) ();
anatofuz
parents:
diff changeset
11 void (__attribute__((regparm(2), stdcall)) foo)(int a) {}
anatofuz
parents:
diff changeset
12 #endif