Files
llvm/lldb/test/api/check_public_api_headers/main.cpp.template
Johnny Chen 19bfde34ed Add a test to check the integrity of the lldb public api directory containing SB*.h headers.
There should be nothing unwanted there and a simpe main.cpp (generated from main.cpp.template)
which includes SB*.h should compile and link with the LLDB framework.

llvm-svn: 136894
2011-08-04 18:17:16 +00:00

25 lines
637 B
C++

//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include <stdio.h>
%include_SB_APIs%
using namespace lldb;
int
main(int argc, char const *argv[])
{
SBDebugger::Initialize();
SBDebugger dbg = SBDebugger::Create();
printf("Hello SBDebugger %d\n", dbg.GetID()); // Set breakpoint here.
SBDebugger::Terminate();
return 0;
}