modified tests
(cherry picked from commit 77316a2838c5037feff8091bb5c0919bc59d6b16)
This commit is contained in:
parent
ebc1309b5f
commit
46d8d76d80
@ -8,8 +8,14 @@
|
||||
|
||||
// RUN: cat %s | %cling 2>&1 -I %S -Xclang -verify
|
||||
// Test enumTest
|
||||
#include "cling/TagsExtension/TagManager.h"
|
||||
#include "cling/TagsExtension/Callback.h"
|
||||
cling::TagManager t;
|
||||
gCling->setCallbacks(new cling::AutoloadCallback(gCling,&t));
|
||||
|
||||
.rawInput 1
|
||||
enum __attribute__((annotate("Enum.h"))) class EC;
|
||||
.rawInput 0
|
||||
EC x=EC::A;
|
||||
// expected-error {{}}
|
||||
|
||||
@ -17,8 +23,9 @@ enum E:unsigned int;
|
||||
template <typename T> class __attribute__((annotate("Def.h"))) Gen;
|
||||
template <> class __attribute__((annotate("Enum.h"))) Gen<E>;
|
||||
|
||||
|
||||
.rawInput 1
|
||||
#include "Enum.h"
|
||||
.rawInput 0
|
||||
EC x=EC::A;
|
||||
|
||||
.q
|
@ -8,6 +8,7 @@
|
||||
|
||||
// RUN: cat %s | %cling -I %S -Xclang -verify
|
||||
// Test forwardDeclaration
|
||||
|
||||
.rawInput 1
|
||||
int id(int) __attribute__((annotate("Def.h")));
|
||||
|
||||
@ -43,13 +44,5 @@ namespace std {
|
||||
|
||||
.rawInput 0
|
||||
|
||||
#include "Def.h"
|
||||
#include "Spc.h"
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
#include <type_traits>
|
||||
//expected-no-diagnostics
|
||||
.q
|
||||
|
25
test/Autoloading/Incomplete.C
Normal file
25
test/Autoloading/Incomplete.C
Normal file
@ -0,0 +1,25 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// 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 -I %S -Xclang -verify
|
||||
// Test incompleteType
|
||||
|
||||
#include "cling/TagsExtension/TagManager.h"
|
||||
#include "cling/TagsExtension/Callback.h"
|
||||
cling::TagManager t;
|
||||
gCling->setCallbacks(new cling::AutoloadCallback(gCling,&t));
|
||||
|
||||
.rawInput 1
|
||||
class __attribute__((annotate("Def.h"))) C;
|
||||
//expected-warning + {{}}
|
||||
//expected-note + {{}}
|
||||
.rawInput 0
|
||||
|
||||
C c;
|
||||
//expected-error {{}}
|
||||
|
Loading…
Reference in New Issue
Block a user