-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90a7639
commit 1d5536f
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//------------------------------------------------------------------------------ | ||
// 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. | ||
//------------------------------------------------------------------------------ | ||
|
||
// clang-format off | ||
// RUN: %rm /tmp/__testing_cling_history | ||
// RUN: cat %s | env --unset=CLING_NOHISTORY CLING_HISTSIZE=8 CLING_HISTFILE="/tmp/__testing_cling_history" %cling - 2>&1 | ||
// RUN: diff /tmp/__testing_cling_history "%S/Inputs/cling_history" | ||
// REQUIRES: not_system-windows | ||
|
||
#include <iostream> | ||
|
||
int i = 8; | ||
|
||
template<class T> | ||
struct type_a { | ||
const T t; | ||
double d; | ||
|
||
/* | ||
comment | ||
* */ | ||
|
||
static const int i = 37; | ||
}; | ||
|
||
// another comment | ||
|
||
using std::cout; | ||
|
||
std::cout << "test\n"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* | ||
comment | ||
* */ | ||
static const int i = 37; | ||
}; | ||
// another comment | ||
using std::cout; | ||
std::cout << "test\n"; |