Doug, please look at decltype-crash and instantiate-function-1.mm, I'm not sure
if they are actually testing the right thing / anything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77070
91177308-0d34-0410-b5e6-
96231b3b80d8
+// RUN: clang-cc -fsyntax-only -verify %s
+
class X {
public:
typedef int I;
I b; // expected-error{{unknown type name 'I'}}
Y c; // expected-error{{unknown type name 'Y'}}
X::Y d;
-X::I e;
\ No newline at end of file
+X::I e;
+// Suppress 'no run line' failure.
+// RUN: true
+
// Paragraph 1 is descriptive, and therefore requires no tests.
struct MyStruct ms;
ms.field_var = 10;
}
+
+// Suppress 'no run line' failure.
+// RUN: true
struct MyStruct *ms;
ms->field_var = 10;
}
+
+// Suppress 'no run line' failure.
+// RUN: true
+// RUN: clang-cc -fsyntax-only -verify %s
+
#include <stdio.h>
const char* f(const char *s) __attribute__((format_arg(1)));
+// RUN: clang-cc -fsyntax-only -verify %s
+
int& a();
void f() {
- decltype(a()) c;
+ decltype(a()) c; // expected-error {{no matching function for call to 'decltype'}}
}
+// RUN: clang-cc -fsyntax-only -verify %s
+// XFAIL
+
template<typename T> struct Member0 {
void f(T t) {
t;
extra = ''
if tr.code==TestStatus.Invalid:
extra = ' - (Invalid test)'
- elif tr.code==TestStatus.NoRunLine:
- extra = ' - (No RUN line)'
elif tr.failed():
extra = ' - %s'%(TestStatus.getName(tr.code).upper(),)
print '%*d/%*d - %s%s'%(self.digits, index+1, self.digits,
XFail = 1
Fail = 2
XPass = 3
- NoRunLine = 4
- Invalid = 5
+ Invalid = 4
- kNames = ['Pass','XFail','Fail','XPass','NoRunLine','Invalid']
+ kNames = ['Pass','XFail','Fail','XPass','Invalid']
@staticmethod
def getName(code):
return TestStatus.kNames[code]
else:
print >>output, "******************** TEST '%s' HAS NO RUN LINE! ********************"%(TESTNAME,)
output.flush()
- return TestStatus.NoRunLine
+ return TestStatus.Fail
FILENAME = os.path.abspath(FILENAME)
SCRIPT = OUTPUT + '.script'