35 lines · c
1#ifndef STRESS1_MERGE00_H2#define STRESS1_MERGE00_H3 4// These don't match the imported declarations because we import them from5// modules which are built in isolation of the current header's pragma state6// much like they are built in isolation of the incoming macro state.7// FIXME: We should expect warnings here but we can't because verify doesn't8// work for modules.9//#pragma weak pragma_weak01 // expected-warning {{weak identifier 'pragma_weak01' never declared}}10//#pragma weak pragma_weak04 // expected-warning {{weak identifier 'pragma_waek04' never declared}}11 12#ifdef MERGE_NO_REEXPORT13#include "merge_no_reexport.h"14#endif15 16#include "common.h"17#include "m00.h"18#include "m01.h"19#include "m02.h"20#include "m03.h"21 22inline int g() { return N00::S00('a').method00('b') + (int)S00(42) + function00(42); }23 24// Use implicit special memebers again for S01 to ensure that we merge them in25// successfully from m01.26inline N00::S01 h() { return N00::S01(); }27 28#pragma weak pragma_weak0229#pragma weak pragma_weak0530 31extern "C" int pragma_weak02();32int pragma_weak05;33 34#endif35