From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- tools/lint/test/files/trojan-source/invisible-function.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/lint/test/files/trojan-source/invisible-function.rs (limited to 'tools/lint/test/files/trojan-source/invisible-function.rs') 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 -- cgit v1.2.3