1// [config] 2// expect_result: fail 3// glsl_version: 1.50 4// require_extensions: GL_ARB_shader_subroutine GL_ARB_explicit_uniform_location 5// [end config] 6 7#version 150 8#extension GL_ARB_shader_subroutine: require 9#extension GL_ARB_explicit_uniform_location: require 10 11subroutine void func_type(); 12 13/* A subroutine matching the above type */ 14layout(location = 2) subroutine (func_type) void f() {} 15