1 //===- llvm/unittest/Support/DynamicLibrary/PipSqueak.cxx -----------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "PipSqueak.h"
15 Global() : Str(nullptr) {}
18 *Str = "Global::~Global";
24 Local(std::string &S) : Str(S) { Str = "Local::Local"; }
25 ~Local() { Str = "Local::~Local"; }
30 extern "C" PIPSQUEAK_EXPORT void SetStrings(std::string &GStr,
32 static Local Lcl(LStr);
36 extern "C" PIPSQUEAK_EXPORT const char *TestA() { return "LibCall"; }