forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paths.C
32 lines (26 loc) · 936 Bytes
/
paths.C
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
//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// RUN: cat %s | %cling -DTEST_PATH="\"%/p/\"" -Xclang -verify 2>&1 | FileCheck %s
#include "cling/Interpreter/Interpreter.h"
gCling->AddIncludePaths(TEST_PATH "Paths/A:" TEST_PATH "Paths/B:"
TEST_PATH "Paths/C");
#include "A.h"
#include "B.h"
#include "C.h"
gCling->AddIncludePath(TEST_PATH "Paths/D");
#include "D.h"
TestA
// CHECK: (const char *) "TestA"
TestB
// CHECK: (const char *) "TestB"
TestC
// CHECK: (const char *) "TestC"
TestD
// CHECK: (const char *) "TestD"
// expected-no-diagnostics
.q