1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice12497.d(15): Error: string expected for argument to mixin, not (foo()) of type void
5 fail_compilation/ice12497.d(17): Error: string expected for argument to mixin, not (foo()) of type void
6 ---
7 */
8 
foo()9 void foo() {}
10 
main()11 void main()
12 {
13     struct S
14     {
15         mixin(foo());   // MixinDeclaration
16     }
17     mixin(foo());       // MixinStatement
18 }
19