commit | e4d2bdd54c29656f2eba004d6db1e4942f2bfcd9 | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Nov 24 17:24:21 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Nov 24 17:24:21 2009 +0000 |
tree | f681f78698ccaef29e34d3d134cc37ebeb18f48c | |
parent | 46408eedfff5aa33662cedb6716a20616f3bad31 [diff] [blame] |
GNUNullExpr is a valid sentinel even though it isn't of pointer type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89778 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/attr-sentinel.cpp b/test/SemaCXX/attr-sentinel.cpp new file mode 100644 index 0000000..0293a5d --- /dev/null +++ b/test/SemaCXX/attr-sentinel.cpp
@@ -0,0 +1,6 @@ +// RUN: clang-cc -fsyntax-only -verify %s +void f(int, ...) __attribute__((sentinel)); + +void g() { + f(1, 2, __null); +}