-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[erl-frontend] Add test for binary in attribute
Summary: Add a test case for D64688517 Reviewed By: rgrig, mmarescotti Differential Revision: D64696149 fbshipit-source-id: 878425da93bef66ad410ef005d8a17a97cc57bb1
- Loading branch information
1 parent
aebdee8
commit 1c92a41
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
infer/tests/codetoanalyze/erlang/pulse/features/features_binary_attr.erl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
% Copyright (c) Facebook, Inc. and its affiliates. | ||
% | ||
% This source code is licensed under the MIT license found in the | ||
% LICENSE file in the root directory of this source tree. | ||
|
||
-module(features_binary_attr). | ||
-some_attribute(<<"which has binary inside">>). | ||
-export([ | ||
test_ok_Ok/0, | ||
test_bad_Bad/0 | ||
]). | ||
-include("../../common.hrl"). | ||
|
||
test_ok_Ok() -> ok. | ||
|
||
test_bad_Bad() -> ?EXPECTED_CRASH(). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters