diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
| commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
| tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/SemaCXX/nonnull.cpp | |
| parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) | |
Vendor import of clang RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1):vendor/clang/clang-release_360-r226102
Diffstat (limited to 'test/SemaCXX/nonnull.cpp')
| -rw-r--r-- | test/SemaCXX/nonnull.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/nonnull.cpp b/test/SemaCXX/nonnull.cpp index 9ff6d115bd16..97b54553427d 100644 --- a/test/SemaCXX/nonnull.cpp +++ b/test/SemaCXX/nonnull.cpp @@ -13,3 +13,8 @@ struct TS { } }; +namespace Template { + template<typename T> __attribute__((nonnull)) void f(T t); + void g() { f((void*)0); } // expected-warning {{null passed to a callee that requires a non-null argument}} + void h() { f(0); } +} |
