blob: e50220cfb7c37094a411e621c960a545530a0aac [file] [log] [blame]
Wolfgang Pieba347c472017-10-31 22:49:48 +00001// REQUIRES: asserts
2// RUN: %clang_cc1 -O0 -triple %itanium_abi_triple -debug-info-kind=limited -S -emit-llvm %s -o - | \
3// RUN: FileCheck %s
4
5// This test simply checks that the varargs thunk is created. The failing test
6// case asserts.
7
8typedef signed char __int8_t;
9typedef int BOOL;
10class CMsgAgent;
11
12class CFs {
13public:
14 typedef enum {} CACHE_HINT;
15 virtual BOOL ReqCacheHint( CMsgAgent* p_ma, CACHE_HINT hint, ... ) ;
16};
17
18typedef struct {} _Lldiv_t;
19
20class CBdVfs {
21public:
22 virtual ~CBdVfs( ) {}
23};
24
25class CBdVfsImpl : public CBdVfs, public CFs {
26 BOOL ReqCacheHint( CMsgAgent* p_ma, CACHE_HINT hint, ... );
27};
28
29BOOL CBdVfsImpl::ReqCacheHint( CMsgAgent* p_ma, CACHE_HINT hint, ... ) {
30 return true;
31}
32
Wolfgang Pieb173b47c2017-11-01 00:01:20 +000033// CHECK: define {{.*}} @_ZThn{{[48]}}_N10CBdVfsImpl12ReqCacheHintEP9CMsgAgentN3CFs10CACHE_HINTEz(