Clang Project

clang_source_code/test/CodeGenCXX/tmp-md-nodes2.cpp
1// 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
33// CHECK: define {{.*}} @_ZThn{{[48]}}_N10CBdVfsImpl12ReqCacheHintEP9CMsgAgentN3CFs10CACHE_HINTEz(
34