File: merge00.h

package info (click to toggle)
llvm-toolchain-15 1%3A15.0.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,554,644 kB
  • sloc: cpp: 5,922,452; ansic: 1,012,136; asm: 674,362; python: 191,568; objc: 73,855; f90: 42,327; lisp: 31,913; pascal: 11,973; javascript: 10,144; sh: 9,421; perl: 7,447; ml: 5,527; awk: 3,523; makefile: 2,520; xml: 885; cs: 573; fortran: 567
file content (34 lines) | stat: -rw-r--r-- 1,078 bytes parent folder | download | duplicates (33)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef STRESS1_MERGE00_H
#define STRESS1_MERGE00_H

// These don't match the imported declarations because we import them from
// modules which are built in isolation of the current header's pragma state
// much like they are built in isolation of the incoming macro state.
// FIXME: We should expect warnings here but we can't because verify doesn't
// work for modules.
//#pragma weak pragma_weak01 // expected-warning {{weak identifier 'pragma_weak01' never declared}}
//#pragma weak pragma_weak04 // expected-warning {{weak identifier 'pragma_waek04' never declared}}

#ifdef MERGE_NO_REEXPORT
#include "merge_no_reexport.h"
#endif

#include "common.h"
#include "m00.h"
#include "m01.h"
#include "m02.h"
#include "m03.h"

inline int g() { return N00::S00('a').method00('b') + (int)S00(42) + function00(42); }

// Use implicit special memebers again for S01 to ensure that we merge them in
// successfully from m01.
inline N00::S01 h() { return N00::S01(); }

#pragma weak pragma_weak02
#pragma weak pragma_weak05

extern "C" int pragma_weak02();
int pragma_weak05;

#endif