diff options
author | Anders Carlsson <andersca@mac.com> | 2009-11-24 17:24:21 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-11-24 17:24:21 +0000 |
commit | e4d2bdd54c29656f2eba004d6db1e4942f2bfcd9 (patch) | |
tree | f681f78698ccaef29e34d3d134cc37ebeb18f48c /test/SemaCXX/attr-sentinel.cpp | |
parent | 46408eedfff5aa33662cedb6716a20616f3bad31 (diff) |
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
Diffstat (limited to 'test/SemaCXX/attr-sentinel.cpp')
-rw-r--r-- | test/SemaCXX/attr-sentinel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/attr-sentinel.cpp b/test/SemaCXX/attr-sentinel.cpp new file mode 100644 index 0000000000..0293a5dce0 --- /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); +} |