summaryrefslogtreecommitdiffstats
path: root/tools/lint/test/files/trojan-source/invisible-function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lint/test/files/trojan-source/invisible-function.rs')
-rw-r--r--tools/lint/test/files/trojan-source/invisible-function.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/lint/test/files/trojan-source/invisible-function.rs b/tools/lint/test/files/trojan-source/invisible-function.rs
new file mode 100644
index 0000000000..b32efb0372
--- /dev/null
+++ b/tools/lint/test/files/trojan-source/invisible-function.rs
@@ -0,0 +1,15 @@
+fn isAdmin() {
+ return false;
+}
+
+fn is​Admin() {
+ return true;
+}
+
+fn main() {
+ if is​Admin() {
+ printf("You are an admin\n");
+ } else {
+ printf("You are NOT an admin.\n");
+ }
+} \ No newline at end of file