summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0601.cs
blob: 8a59614ec1c5cdc0b6ada7bdf37a7ffdd2de252f (plain)
1
2
3
4
5
6
7
8
9
10
11
// CS0601: The DllImport attribute must be specified on a method marked `static' and `extern'
// Line : 9

using System;
using System.Runtime.InteropServices;
      
class Test {
	[DllImport("cygwin1.dll", EntryPoint="puts", CharSet=CharSet.Ansi)]
	public extern int puts (string name);
	
}