Fix syntax errors in the test.

I DO NOT STILL UNDERSTAND HOW THAT WAS HIDDEN BY CLING's TESTSUITE. We should
investigate seriously these issues.
This commit is contained in:
Vassil Vassilev 2013-06-10 12:41:58 +02:00 committed by sftnight
parent 92098d2046
commit 78ea68614a

View File

@ -12,9 +12,10 @@
#include <stdio.h>
.rawInput 1
using namespace cling;
void generateNestedTransaction(int depth) {
if (!depth)
return;
@ -34,9 +35,9 @@ const cling::Transaction* T = gCling->getFirstTransaction();
while(T) {
if (!T->size())
printf("Empty transaction detected!\n");
if (T->getWrapperFD()->getKind() != Decl::Function)
if (T->getWrapperFD()->getKind() != clang::Decl::Function)
printf("Unexpected wrapper kind!\n");
if (T->getState != Transaction::kCommitted)
if (T->getState() != Transaction::kCommitted)
printf("Unexpected transaction state!\n");
//T->printStructure();
T = T->getNext();