mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
25 lines
309 B
C#
25 lines
309 B
C#
/*
|
|
Global statements are not allowed in 'library' target.
|
|
|
|
semmle-extractor-options: --standalone
|
|
*/
|
|
|
|
using System;
|
|
|
|
[assembly: Attr] // not a global stmt
|
|
|
|
Console.WriteLine("1");
|
|
Console.WriteLine("2");
|
|
M();
|
|
|
|
void M()
|
|
{
|
|
}
|
|
|
|
public class Attr : Attribute
|
|
{
|
|
void M1()
|
|
{
|
|
Console.WriteLine("3");
|
|
}
|
|
} |