diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-28 00:53:20 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-08-28 00:53:20 +0000 |
commit | 9fc9bf83a8a51693585cb9f20d73ffd4baa92203 (patch) | |
tree | 563b26b83afa13902c3dca10e54409f6ae7eaeeb /clang/test/CodeGen/nonnull.c | |
parent | 1bb0750b983751a9947d064d56dd1178551f7d90 (diff) | |
download | bcm5719-llvm-9fc9bf83a8a51693585cb9f20d73ffd4baa92203.tar.gz bcm5719-llvm-9fc9bf83a8a51693585cb9f20d73ffd4baa92203.zip |
Properly handle multiple nonnull attributes in CodeGen
llvm-svn: 216638
Diffstat (limited to 'clang/test/CodeGen/nonnull.c')
-rw-r--r-- | clang/test/CodeGen/nonnull.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/nonnull.c b/clang/test/CodeGen/nonnull.c index e234105d9ad..7c33e6329fd 100644 --- a/clang/test/CodeGen/nonnull.c +++ b/clang/test/CodeGen/nonnull.c @@ -41,3 +41,11 @@ typedef union { int bar6(TransparentUnion tu) __attribute__((nonnull(1))) { return *tu.p; } + +// CHECK: define void @bar7(i32* nonnull %a, i32* nonnull %b) +void bar7(int *a, int *b) __attribute__((nonnull(1))) +__attribute__((nonnull(2))) {} + +// CHECK: define void @bar8(i32* nonnull %a, i32* nonnull %b) +void bar8(int *a, int *b) __attribute__((nonnull)) +__attribute__((nonnull(1))) {} |