Skip to content

Commit bb08c09

Browse files
AidanGoldfarbAidan
authored andcommitted
Update nullptr.c
Removed duplicate test
1 parent 87c8b67 commit bb08c09

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/test/Sema/nullptr.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,5 @@ void foo(void *);
113113
void bar() { foo(__nullptr); }
114114
static_assert(nullptr == __nullptr);
115115
static_assert(_Generic(typeof(__nullptr), nullptr_t: true, default: false));
116-
117-
void foo(struct S *);
118-
void bar() { foo(__nullptr); } // Test that it converts properly to an arbitrary pointer type without warning
119116
_Static_assert(__nullptr == 0); // Test that its value matches that of NULL
120117
_Static_assert(_Generic(__typeof(__nullptr), int : 0, void * : 0, default : 1)); // Test that it's type is not the same as what NULL would generally have.

0 commit comments

Comments
 (0)