Skip to content

Commit

Permalink
Tck: llvm NULL is also a native pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamstolis committed Mar 25, 2022
1 parent 039edd0 commit 9fa437c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates.
* Copyright (c) 2019, 2022, Oracle and/or its affiliates.
*
* All rights reserved.
*
Expand Down Expand Up @@ -93,7 +93,7 @@ public Collection<? extends Snippet> createValueConstructors(Context context) {
vals.add(createSnippet(context, charSource, "val", "'a'", TypeDescriptor.NUMBER));

Source nullSource = createSource(nativeSourcePath + "/value_null.bc");
vals.add(createSnippet(context, nullSource, "val", "NULL", TypeDescriptor.NULL));
vals.add(createSnippet(context, nullSource, "val", "NULL", TypeDescriptor.intersection(TypeDescriptor.NULL, TypeDescriptor.NATIVE_POINTER)));

return Collections.unmodifiableList(vals);
} catch (IOException ioe) {
Expand Down

0 comments on commit 9fa437c

Please sign in to comment.